GetField()

Summary

Returns the view, field name, and field spec for a field.

Syntax

info_array = GetField(string field_spec)

Argument Contents
field_spec A field spec

Returns

An array of three elements.

Element Type Contents
1 String The complete field spec
2 String Name of the view containing the field
3 String The field name

Notes

  • The full field specification, view name and field name returned by GetField() are like those returned by other functions that return view names, field specs, and field names. Thus, GetField() is useful for conversion purposes.

Example

inf = GetField("States.Name")

Error Codes

Error Type Meaning
Error The input field specification is ambiguous
NotFound The input field does not exist

See Also

Function Summary
GetFields() Gets a list of the fields in a view
GetMappableFields() Creates a list of the fields that are mappable to a layer
GetEditableFields() Gets a list of the editable fields in a view
GetReadOnlyFields() Gets a list of the read-only fields in a view
GetIDField() Gets the full field spec of the ID field for a layer