RecordRef.Name() Method
Version: Available or changed with runtime version 1.0.
Identifies the name of the table
Syntax
Name := RecordRef.Name()
Note
This method can be invoked using property access syntax.
Parameters
RecordRef
Type: RecordRef
An instance of the RecordRef data type.
Return Value
Name
Type: Text
The name of the table.
Example
The following example opens a table as a RecordRef variable that is named MyRecordRef. You can specify any table number in the Open Method (RecordRef). In this example, the table 18 (Customer) is open. The Name method retrieves the name of table 18 and stores it in the varTableName variable. The table number and name are displayed in a message box.
var
MyRecordRef: RecordRef;
varTableName: Text;
Text000: Label 'Table %1 is the %2 table.';
begin
TableNo := 18;
MyRecordRef.Open(TableNo);
varTableName := MyRecordRef.Name;
Message(Text000, TableNo, varTableName);
end;
See Also
RecordRef Data Type
Get Started with AL
Developing Extensions
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de