Extern Tips

From FM Plugin Wikipedia
Revision as of 19:31, 28 January 2009 by Jake (talk | contribs) (New page: The Extern header file contains the main/initial Callback Structure which is passed into your plug-in's entry point function, as well as several useful defines and enumerations. This head...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Extern header file contains the main/initial Callback Structure which is passed into your plug-in's entry point function, as well as several useful defines and enumerations. This header also includes several callbacks and things for developing plug-ins using the older "External()" style interface. Those items will not be discussed here as they are not recommended.

Callback functions

There are 2 callback functions that are useful for developing FM7+ plug-ins:

FMX_StartScript(fileName, scriptName, control, parameter)
The StartScript function is what you use to call scripts in FileMaker from your plug-in. This function takes 4 parameters:
  • fileName - The file name of the database that contains the script you want to call. You do not need to include the file extension (".fp7") here, and in fact, any 1 to 4 character extension you define will be completely ignored. (eg. If you pass in "mydb.A" or "mydb.fake", FileMaker will choose "mydb.fp7" as the database.)
  • scriptName - The name of the script you want to call. The script name is case-insensitive.

.... work in progress ... check back later