RecordRef.SystemIdNo() Method

Version: Available or changed with runtime version 4.0.

Gets the field number that is used by the SystemId field. The SystemId field is a system field that the platform adds to all table objects.

Syntax

SystemIdFieldNo :=   RecordRef.SystemIdNo()

Note

This method can be invoked using property access syntax.

Parameters

RecordRef
 Type: RecordRef
An instance of the RecordRef data type.

Return Value

SystemIdFieldNo
 Type: Integer
The field number of the SystemId field.

Example

This example shows how to use the SystemIdNo method to retrieve the field number that is used by the SystemId field of a table.

var
    CustomerRec: Record Customer;
    SystemIdFieldNo: Integer;
    Text000: Label 'The field number is: %1.';

begin
    CustomerRec.Open(Database::Customer);
    SystemIdFieldNo := CustomerRec.SystemIdNo();
    Message(Text000, Format(SystemIdFieldNo));
end;

See Also

SystemId Field
RecordRef Data Type
Get Started with AL
Developing Extensions