GetString

[method icon] GetString$(iIndex)

Returns the item from the specified index location

iIndex Integer

Returns result of type String

Applies to: ComboBox , Grid , GridCell , KCMLEdit , List Box


>

GetString

This method can be used to return the item from the specified index location in controls using index identification such as listboxes. For example, the following would return the item text from the fifth item added to the Edit control dropdown list:

 Selected$ = .EditControl1.GetString$(5)

To return the currently selected item this method can be combined with the Index property, for example:

 Selected$ = .EditControl1.GetString$(.EditControl1.Index)

See also

ComboBox methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events.