version 2003
PA_GetTrueFieldNumber (virtualTable; virtuelField; trueTable; trueField)
Parameter | Type | Description | |
virtualTable | short | Virtual able number | |
virtuelField | short | Virtual field number | |
trueTable | short * | True table number | |
trueField | short * | True field number |
Description
The command PA_GetTrueFieldNumber returns the true table and field numbers of a virtual field. Those are the numbers in the real structure, the one that is defined in the design environment.
Pass the virtual table number in virtualTable, the virtual field number in virtualField, and, if no error occurred, retrieve the true numbers in the short pointed by trueTable and trueField.
If you want to call API routines that use table/fields numbers, be sure to switch between virtual/real structure if necessary, depending of what you want to do.
The virtual structure is used when the 4D commands SET TABLE TITLES and SET FIELD TITLES are called.
See Also
Error Handling
Use PA_GetLastError to see if an error occurred.