Any of the standard, or user created custom, script sections can be called using this script.Execute("AnyScriptName" ) function.

 

Syntax:

script.Execute( "CustomScriptName", [parameterlist...] )

Or

script.Execute( "EXIT ORDERS" )

 

Parameter:

Description:

"CustomScriptName"

Custom script's given name when it was created.

parameterlist

Optional: Parameters values custom script will require to execute correctly.

 

Returns:

Custom scripts can return a value, but it isn't required.  

 

Custom scripts that create a new function for processing information usually will return a Floating number or a string.

 

Example:

'  Custom script adds two numbers together
Print script.Execute( "AddTwoNumbers", 2, 2)

Return:

4

 

Example:

'  Custom script adds two numbers together
value = script.Execute( "AddTwoNumbers", 2, 2)
Print value

Return:

4

 

Links:

Script, Script Functions, Script Properties

See Also:

 

 


Edit Time: 4/6/2017 02:16:44 PM


Topic ID#: 307

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software