CurrentRecordId (Record function)

From m204wiki
Jump to navigation Jump to search

Get recordId from current record in For loop (Record class)


Get the Imagine Transparency recordId for current (innermost) record For loop.

Syntax

%string = %(Record In filOrGrp name):CurrentRecordId

Syntax terms

%stringThe recordId of the For loop record on Imagine if the record is in a file that is an Imagine Transparency file, or an empty string, otherwise.
%(Record In filOrGrp name) The class name in parentheses denotes a shared method. CurrentRecordId can also be invoked via a Record object variable, which may be Null.

Usage notes

The recordId for Imagine associated records is an 8-byte binary string value. This can be used to create another Record object with the NewFromRecordId function though there is really no good reason to create another Record object this way, or it could be passed to the Imagine broker, probably after converting it to hex. Note, however, that while recordIds uniquely identify any record in Imagine, Imagine still needs to know the Imagine file that holds the record to locate it. This can be obtained using the CurrentImagineFile method.

Examples

See also