PA_GetVariableKind

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

version 2003


PA_GetVariableKind (aVariable) PA_VariableKind

ParameterTypeDescription
aVariablePA_VariableVariable
Function resultPA_VariableKindKind of variable

Description

The routine PA_GetVariableKind returns the kind of the variable aVariable.

This kind will be one of the PA_VariableKind enum possible (see this enum for a complete listing of all kinds or the PublicTypes.h header file).

Example

Check the type of a function result:

   PA_Variable result;

   result = PA_ExecuteFunction("aProjectFunction"); // using C strings under Windows
   if(PA_GetVariableKind == eVK_Date)
   {
   /* . . . OK, this is the right kind of variable . . . */
   }

See Also

PA_VariableKind.

Error Handling

PA_GetLastError keeps the last error that occurred before calling the routine.


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