PA_GotoArea

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

version 2003


PA_GotoArea (variableName)

ParameterTypeDescription
variableNamechar *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

GOTO AREA.

Error Handling

None.


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