Dial_Version (function reference)

By October 1, 2017 November 14th, 2018 Online Help, Troi Dialog Plug-in
Troi Dialog Plug-in for FileMaker Pro


Use this function to see which version of the plug-in is loaded. This function is also used to register the plug-in.

SyntaxFunction badge

Dial_Version ( switches )


switchesdetermine the behaviour of the function


Switches can be one of this:

-GetVersionStringthe version string is returned (default)
-GetVersionNumberreturns the version number of the plug-in
-ShowFlashDialogshows the Flash Dialog of the plug-in (returns 0)
-GetPluginInstallPathreturns the path where the plug-in is installed
-GetRegistrationStateget the registration state of the plug-in: 0 = not registered; 1 = registered
-UnregisterPluginsets the registration state of the plug-in to unregistered, returns 0

If you leave the switches parameter empty the version string is returned.

Returned Result

Data type returned



The function returns ? if this plug-in is not loaded. If the plug-in is loaded the result depends on the switches parameter. It is either a:

If you asked for the version string it will return for example “Troi Dialog Plug-in 7.0”.
If you asked for the version number it returns the version number of the plug-in x1000. For example version 6.5.1 will return number 6510.
This will show the flash dialog and then return the error code 0.
returns 0 = the plug-in is not registered ; 1 = the plug-in is registered.

Originated in

Troi Dialog Plug-in 1.2


FileMaker Pro 12 to 17


Important: always use this function to determine if the plug-in is loaded. If the plug-in is not loaded use of external functions may result in data loss, as FileMaker will return an empty field to any external function that is not loaded.


Dial_Version ( "" )

will for example return “Troi Dialog Plug-in 7.0”.

Example 2

Dial_Version ( "-GetVersionNumber" )

will return 6510 for version 6.5.1

Dial_Version ( "-GetVersionNumber" )

will return 5501 for version 5.5b1

Dial_Version ( "-GetVersionNumber" )

will return 5130 for version 5.1.3

So for example to use a feature introduced with version 7.0 test if the result is equal to or greater than 7000.

Related functionFunction badge


Related topics

Troi Dialog Plug-in online help (overview)

Online Help Page for Troi Dialog Plug-in for 14 to 17 –> Dial_Version (dialp9001) 2018-1114 15:11:39