PA_GetMethodID

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

version 2003


PA_GetMethodID (methodName) long

ParameterTypeDescription
methodNamechar *Name of the method
Function resultlongMethod 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

PA_ExecuteMethodByID.

Error Handling

Use PA_GetLastError to see if an error occurred


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