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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈