AddState
(Engine-Level Function)
Description: | Adds a new state to an existing module and returns its state value. |
Warning: | This function should be used only by advanced programmers. |
Returns: | State value |
Usage: | Script Only. |
Function Groups: | Compilation and Online Modifications, States |
Related to: | AddOptional | AddStatement | AddVariable | FirstState |
Format: | AddState(Module, Name, Reserved, Size) |
Parameters: |
Module |
Required. Any expression that returns a module value. |
Name |
Required. Any text expression giving the name of the new state. |
Reserved |
Reserved for future use. Should be set to 0. |
Size |
Required. Any numeric expression giving the length of the state definition text, measured in characters. |
Comments: | Seldom (if ever) used when adding features to modern VTScada applications. |