Specifications
Sicon-8 Technical Manual CircuitWerkes, Inc.
81
Global Variables.
Each site contains 5 global variables to be used between the scripts if needed:
MyByte(Index) As Byte
MyBoolean(Index) As Boolean
MyInteger(Index) As Integer
MyLong(Index) As Long
MyFloat(Index) As Single
MyDouble(Index) As Double
MyString(Index) As String
MyDate(Index) As Date
Index can be a 0,1,2,3,4 equaling 5 total variables per each type.
To use a variable just assign a value to it without declaring it and this variable will retain its
value until SiController is closed or the variable is reassigned.
Example:
MyByte(0) = 5
MyString(1) = “Hello World”
Each variable can only hold a certain value before it overflows. See the table for the range of
each variable type.
Subtype Range
Byte
0 to 255.
Boolean True or False.
Integer
-32,768 to 32,767.
Long
-2,147,483,648 to 2,147,483,647.
Single
-3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for
positive values.
Double
-1.79769313486232E308 to –4.94065645841247E-324 for negative values;
4.94065645841247E-324 to 1.79769313486232E308 for positive values.
Currency
-922,337,203,685,477.5808 to 922,337,203,685,477.5807.
Date
January 1, 100 to December 31, 9999, inclusive.
Object Any Object reference.
String
Variable-length strings may range in length from 0 to approximately 2 billion characters.