Maptitude GISDK Help |
Converts an array element to a real number.
int_value = ArrayElementToReal(array arr, int pos)
Argument |
Contents |
arr |
An array |
pos |
The position of the array element |
The array element in the position pos if it is of the right type or null if the element is the wrong type or if pos is out of bounds.
Can also be called as A2R().
Allows you to access elements in an array when using expressions and formula fields.
// Get the X value returned by MapCoordToXY(), based on Longitude and Latitude fields
x = A2R(MapCoordToXY(, Coord(Longitude, Latitude)), 1)
opts = {{"Color", ColorRGB(0,0,0)}, {"Line Width", 4.5}, {"Names", "Fred", "Sam"}}
// To get the line width:
linewidth = A2R(FindOptionValue(opts, "Line Width"),1)
// linewidth is now equal to 4.5
Function |
Summary |
Converts an array element to an integer |
|
Converts an array element to a string |
|
Returns the specified sub-array, which must itself be an array |
©2025 Caliper Corporation | www.caliper.com |