version 2003
PA_MethodNames (arraynames; arrayIDs)
Parameter | Type | Description | |
arraynames | PA_Variable* | variable to an array of strings that holds names | |
arrayIDs | PA_Variable* | variable to an array of integers that holds IDs |
Description
The PA_MethodNames command fills to PA_Variable structure with two arrays that holds the names and the ID of all the project methods of the database.
You can then use the PA_GetStringInArray and the PA_GetIntegerInArray to read the name or the ID of a particular method. To avoid memory leaks, call PA_ClearVariable on both variables to release the memory they use.
You can pass a NULL value as one of the parameters if you only need to read names or IDs.
Examples
fills an array parameter with the method names.
PA_GetMethodNames( &arraynames, 0 ); PA_SetVariableParameter( params, 1, arraynames, 1 );
PA_Variable arraynames;
See Also
PA_GetIntegerInArray, PA_GetStringInArray.