KeyRef.Record() Method
Version: Available or changed with runtime version 1.0.
Returns a RecordRef for the current record referred to by the key.
Syntax
Record := KeyRef.Record()
Parameters
KeyRef
Type: KeyRef
An instance of the KeyRef data type.
Return Value
Record
Type: RecordRef
The RecordRef of the record that is currently selected referenced by the key. If a key is not selected, an error is returned.
The table with ID 18 (the Customer table) is open with a reference. The KeyRef Data Type for the record is retrieved by using the KeyIndex Method (RecordRef). The method retrieves the key that has an index of 1 in the record and stores the value in the varKeyRef variable. The varKeyRef variable is then used to return the RecordRef Data Type.
var
RecRef: RecordRef;
varKeyRef: KeyRef;
begin
RecRef.Open(18);
varKeyRef := RecRef.KeyIndex(1);
RecRef := varKeyRef.Record;
end;
See Also
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour