Variable and Constant types |
Top Previous Next |
A data type simply tells the scripting language how to handle the data that is contained in a variable or constant. For example, a string type contains alphanumeric characters surrounded by single quotes while an integer type contains whole numbers.
strMyName:='John Doe'; intMyCounter=:1001;
Below are the data types used in the scripting language:
•Char : can contain any of the characters belonging to the ASCII alphabet. •String: can contain any character sequence with a length from 1 to 255. •Boolean: can contain the two logic values true or false. •Float: can contain every decimal value between ±2.9*10-38 and ±1.7*10+38. •Integer: can contain all the whole relative values between -32768 and +32767. •Hex: can contain all the values into hexadecimal scale. |