PA_GetVirtualFieldNumber

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetVirtualFieldNumber (trueTable; trueField; virtualTable; virtualField)

ParameterTypeDescription
trueTableshortTrue table number
trueFieldshortTrue field number
virtualTableshort *Virtual table number
virtualFieldshort *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

PA_GetTrueFieldNumber.

Error Handling

Use PA_GetLastError to see if an error occurred.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next