Create Global Data Item
This command creates a global data item.
Parameters
Name: Text string of name of new Global Data Item
Type: Type of global data item (Number, Text, Sheet, etc plus object variable types)
Reset Value: The value that the Global Data Item takes on Reset
Comments
Can be called at any time. Useful for creating a new variable when a component is dropped on the screen, or to create a temporary sheet to attach to a Work Item to hold information about that Work Item.
Example
This will create a Number variable called “var_index_number” and set a reset value of 1 to the variable.
Create Global Data Item "var_index_number" , Number , 1
You can also find a simulation example on this here: Create_Erase_Global_Data_Item.s8