setCtlScripting

Requires FM 1.0 Beta 9.1 (February 2009) or newer

Syntax

int setCtlScripting(int n, int state)

Arguments

n
The control number that will have scripting enabled/disabled
state
Set to true / 1 to enable scripting, or false / 0 to disable scripting.

Return

Returns false if the control number is out of range or not in use, true otherwise.

Description

Enables and disables scripting for a user control.

Example

setCtlScripting(0, true);
setCtlScripting(1, false);

See Also

(checkScriptVal)?, (enableScriptVal)?, (getScriptVal)?, (setScriptVal)?