DeleteOptional

Description: Deletes a statement from an action script.
Warning: This function should be used by advanced users only. Irrevocable alteration of your application may occur.
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: 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.