DeleteOptional

(Engine-Level Function)

Description: Deletes a statement from an action script.
Warning: This function should be used only by advanced programmers.
Returns: Nothing
Usage: Script Only.
Function Groups: Compilation and On-Line Modifications,  States
Related to: DeleteModule | DeleteState | DeleteStatement | DeleteVariable
Format: DeleteOptional(Action, Position)
Parameters:  
Action   
Required. Any expression that gives the VTScada Value Types of the action.
Position   
Required. Any numeric expression giving the statement number in the script to delete, beginning with 1.
Comments:

Seldom (if ever) used when adding features to modern VTScada applications.

The corresponding text for the deleted statement is removed from the document file.
This statement is disabled in the run time version of VTScada. It will do nothing.