Base Types and Expressions
Base Types and Expressions

Base Types and Expressions

There are two base types in the ZBI language. These types are Integers and Strings. Integers are whole numbers that contain no fractional part.
The range of values for integers is: -2,147,483,648 to +2,147,483,647
Strings are character arrays. The string length is only limited by the amount of memory in the system (version 2.0 and higher). Each character can have a value between 0 and 255 (version 2.0 and higher).
The use of control characters (0-31) may be difficult to debug based on the handling of control characters in different communications programs. In addition the ETX (3) will terminate a ZBI application when it is received on the console port. Use the CHR$ function when control characters must be placed into strings.
In ZBI version 1.4 and lower, there was a string length limit of 255 characters.
This section is organized as follows:
  • Variable Names
  • Variable Declarations
  • Constants
  • Arrays
  • Assignment
  • Numeric Expressions
  • String Concatenation (&)
  • Sub-strings
  • Boolean Expressions
  • Combined Boolean Expressions