The TableName.File_Number Symbol
A table’s file number is represented by the symbol TableName.File_Number. When a Data Dictionary class is created, its Main_File property is set as follows:
Set Main_File to Customer.File_Number
The Get_FieldNumber Compiler Command
While there is no direct symbol to identify a field, there are commands and keywords to simplify this process. A compiler command, Get_FieldNumber, can be used to extract a field number from a file.field. It has the following format:
Get_FieldNumber file.field to field_num
It can be used in the following way:
Get_FieldNumber Customer.Name to iField
Set Field_Option iField DD_AutoFind to True
Our custom Field_NoSpaceLabel can be accessed as follows:
Get_FieldNumber Customer.Name to iField
Get Field_NoSpaceLabel iField to sLabel