TABLECAPTION Function (Record)
Gets the current caption of a table as a string.
Caption := Record.TABLECAPTION
Parameters
- Record
Type: Record The record in the table for which to retrieve the table caption.
Property Value/Return Value
Type: Text or code
The caption of the table.
Remarks
TABLECAPTION returns the caption of a table. TABLECAPTION first looks for a CaptionML Property. If it does not find one, it uses the Name Property. This means that TABLECAPTION has multilanguage functionality.
Example
The following example retrieves the caption of the Customer table by using the CustomerRec variable, a record from the Customer table. The value of the Customer table caption is stored in the TableCaption variable and displayed in a message box. The value that is displayed is Customer. This example requires that you create the following variables in the C/AL Globals window.
Variable name | DataType | Subtype |
---|---|---|
CustomerRec |
Record |
Customer |
TableCaption |
Text |
Not applicable |
TableCaption := CustomerRec.TABLECAPTION;
MESSAGE('The caption for the customer table is: %1', TableCaption);
See Also
Reference
FIELDCAPTION Function (Record)
Record Data Type