Previous Topic

Next Topic

PlayScript - MaxBasic Function

PlayScript(FileName: String): Boolean

Plays the script specified in FileName. The script is searched for in the Company script directory if a full path is not specified in the FileName. Returns True on successful Play Script, False if Play Script fails, Error if script file is not found.

The ScriptArgs function can be used with this function.

PlayScript function syntax has these named arguments:

Parameter

Description

File Name\

Required. The file name containing the script to play.

This function accepts an infinite number of arguments after the required parameters, for example:

  PlayScript("Script1.pfs", "Parameter1", 0, Date)

Inside script1.pfs these are accessed via the ScriptArgs function.

To open the file in a new Script Editor window, place the cursor in the File Name and click Ctrl+Enter, or right click to open the Context Menu, then select Open Source.

See also the Web Services PlayScript function.

See Also

Script Functions

Book Contents

Book Index