SetColumnArray(), SetEditorFields()

Summary

Sets the columns displayed in an editor.

Syntax

SetColumnArray(string editor_name, array names)

Argument Contents
editor_name The name of the editor, or null for the current editor
names An array of names of the fields to display

Notes

  • Can also be called as SetEditorFields().

  • The editor displays the specified columns in the order in which they appear in the names array. If the editor is not large enough to display all the columns simultaneously, it displays a horizontal scroll bar with which the user can view all the columns.

Example

// Display only the name and population fields on the county editor
SetColumnArray("Counties", {"Name", "[Population 1990]"})

Error Codes

Error Type Meaning
NotFound The specified editor or one of the specified fields does not exist

See Also

Function Summary
CreateEditor() Creates a new editor window
GetColumnArray() Gets a list of the columns displayed in an editor
GetRowOrder() Gets the order of rows in an editor
SetRowOrder() Sets the order in which rows appear in an editor