| Maptitude GISDK Help |
Caliper Script does not require that you declare variables before you use them. The type of a variable is determined automatically by an assignment statement. For example:
x = 1 + 2 + 3 // x is an integer
y = 4.357 // y is a real
z = "Hello, World!" // z is a string
pt = ClickCoord() // pt is a coordinate
arr = {1, 2, 3, 4, 5} // arr is a 5-element array
A subsequent assignment statement can change the type of a variable:
x = "Done! // x is now a string
Variable names must begin with a letter, and can contain letters, numbers, and underscores. They can be of any length, and are case sensitive.
For more information, see...
| ©2025 Caliper Corporation | www.caliper.com |