|
![]() |
![]() |
version 2003
PA_GetMethodID (methodName) → long
Parameter | Type | Description | |
methodName | char * | → | Name of the method |
Function result | long | ← | Method internal ID |
Description
The routine
PA_GetMethodID
returns the unique ID number of the 4th Dimension global method or function for the name passed in
fName
. If the method or function does not exist, 0 is returned.
Once the unique ID of a 4D global method or function is obtained, the 4D plug-in can call it directly using
PA_ExecuteMethodByID
. Refer to the entry point
PA_ExecuteMethodByID
for more information.
Example
Check if a global project method exists.
char MethodExists (char *methodName)
{
return ( PA_GetMethodID( methodName ) != 0 );
}
See Also
Error Handling
Use
PA_GetLastError
to see if an error occurred