GetString
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
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)