Maptitude GISDK Help |
Returns the number of displayed decimal places for a real-typed field.
field_decimals = GetFieldDecimals(string field_spec)
Argument |
Contents |
field_spec |
A field specification |
An integer indicating the number of decimal places displayed. GetFieldDecimals() returns zero (0) if the field is integer-typed or string-typed.
The number of displayed decimal places is used when the field is displayed in a new editor. It is also used when the field is exported (see ExportView()).
The number of displayed decimal places can be changed with SetFieldDecimals().
The number of displayed decimal places is not necessarily equal to the actual number of decimal places in the data file.
ndec = GetFieldDecimals("Employee.PayRate")
Error Type |
Meaning |
Error |
The input field specification is ambiguous |
NotFound |
The input field does not exist |
Function |
Summary |
Changes the number of displayed decimals for a real-typed field |
|
Returns the data type, display width, decimals, and index flag for a field |
©2025 Caliper Corporation | www.caliper.com |