Table of Contents

IsPk Procedure

Codeunit RecRef Functions

Used to check if a field is the Primary Key (PK) of a table.

Signature

IsPk(var RecRef: RecordRef; FieldNo: Integer) : Boolean

Parameters

var RecRef RecordRef

The RecordRef that contains the field that should be checked.

FieldNo Integer

The number of the field that should be checked.

Returns

Boolean

true if the field is the only field of the Primary Key.

This documentation is generated from Smart Toolbox v27.1