Topics   All   Mac OS X (Only)   Windows (Only)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 4.0   4.1   4.2   4.3   4.4   5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4    Statistic  

FM.RunScriptLater

Component: FM
Version: 1.2
Mac OS X: Yes
Windows: Yes
Server: No

MBS( "FM.RunScriptLater"; DelaySeconds; FileName; ScriptName { ; ScriptParameter } )

Parameters

Parameter Description Example value
DelaySeconds The Number of Seconds to wait before running the script. 10
FileName The name of the file that contains the script to be run Get(Filename)
ScriptName The exact name of the script to run "TestScript"
ScriptParameter Optional
Optional, he Script Parameter to pass to the script

Result

Returns OK on success or error message on failure.

Description

Runs a script in any open FileMaker file.
You can also pass a text string to the Script as a Parameter. The parameter can be retrieved by using Get(ScriptParameter) in the script that plug-in is calling.
see also FM.RunScriptIdle and FM.RunScript.

With plugin version 6.0 or newer the script name can be a script ID number. In that case the plugin queries the script name for the given script ID. This allows to call scripts by ID and avoid problems if scripts are later renamed.

Examples

Trigger a script later

Let(
[
/*-----------------PARAMETERS--------------------*/
DelaySeconds = 5;
FileName = Get ( FileName );
ScriptName = "Triggered Script Demo 2";
ScriptParameter = "Some Data"
];
/*-------------------FUNCTION----------------------*/
MBS(
"FM.RunScriptLater";
DelaySeconds;
FileName;
ScriptName;
ScriptParameter
)
)

See also


FM.RunScriptIdle   -   FM.SQL.Execute

Feedback: Report problem or ask question.




Links
MBS Realbasic Chart Plugins - Pfarrgemeinde St. Arnulf Nickenich