Maptitude GISDK Help |
Gets the display width of a field.
field_width = GetFieldWidth(string field_spec)
Argument |
Contents |
field_spec |
A field spec |
An integer indicating the display width of the field.
The display width is used as the initial width of the field when it is displayed in a new editor. It is also the width of the field when it is exported (see ExportView()).
The display width can be changed by SetFieldWidth(), and also by widening or narrowing a corresponding column heading in an editor.
The display width is not necessarily equal to the actual width (number of characters) of the field in the data file.
curr_width = GetFieldWidth("States.Population")
SetFieldWidth("States.Population", curr_width + 2)
Error Type |
Meaning |
Error |
The input field specification is ambiguous |
NotFound |
The input field does not exist |
Function |
Summary |
Changes the display width of a field |
|
Returns the data type, display width, decimals, and index flag for a field |
©2025 Caliper Corporation | www.caliper.com |