version 2003
PA_GotoArea (variableName)
Parameter | Type | Description | |
variableName | char * | Name of the object that should get the focus |
Description
The routine PA_GotoArea is used to select the data entry variable variableName as the active area of the form. It is equivalent to the user's clicking on or tabbing into variableName
.
This is like the GOTO AREA 4th Dimension command except that the routine cannot give the focus to fields.
NOTE
If variableName is not an existing object, the focus is "lost" and the user must click on a variable/field to get it again.
Example
Force user to enter a certain value in a variable.
if(MyGetLongVariableValue("VAT") == 0) // Call PA_GetVariable and so on. { PA_Alert("You must set the value of the VAT before"); PA_GotoArea("VAT"); }
See Also
Error Handling
None.