Syntax: fork()

Syntax:

fork( Function, ObjectName )

Parameters:

Function – The name of the function to run in the Script Object. This parameter is required.

ObjectName – The name of the object to be used in the function. This parameter is required.

Remarks:

This function is used to create a new thread for the function to run in, so the command after the function you have called will execute at the same time as the command in the function. Normally, when you call a function in a script the line after the function is not run until the function has completed, the fork function allows both the function and the line after the function to execute at the same time. In this way, the fork function is similar to a Simultaneous action in the Programming tab of the Actions dialog.

image\Script_Button.jpgExamples