version 2003
PA_GetVariableKind (aVariable) PA_VariableKind
Parameter | Type | Description | |
aVariable | PA_Variable | Variable | |
Function result | PA_VariableKind | Kind 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
Error Handling
PA_GetLastError keeps the last error that occurred before calling the routine.