version 2003
PA_GetVirtualFieldNumber (trueTable; trueField; virtualTable; virtualField)
Parameter | Type | Description | |
trueTable | short | True table number | |
trueField | short | True field number | |
virtualTable | short * | Virtual table number | |
virtualField | short * | Virtual field number |
Description
The command PA_GetVirtualFieldNumber returns the virtual table and field numbers of a true field. These are the numbers in the virtual structure mode.
Pass the true table number in trueTable, the true field number in trueField, and, if no error occurs, retrieve the virtual numbers in the short pointed by virtualTable and virtualField.
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.