GetContents Function (ComboBox ListBox PopupListRadioList)

Class

  • ComboBox
  • ListBox
  • PopupList
  • RadioList

Action

Returns the contents of the combo box, list box, popup list, or radio list.

Syntax

lsContents = list.GetContents ([bRawMode])
Variable Description
lsContents The list contents. LIST OF STRING.
bRawMode Optional: TRUE to leave platform-specific information in the strings, or FALSE (default) to remove that information. BOOLEAN.

Notes

GetContents returns a list of strings identifying each of the items in the combo box, list box, popup list, or radio list. For text items, GetContents returns the string of the item. For graphical items and items not containing text, GetContents returns a pound sign (#) followed by the index number of the item.

When bRawMode is TRUE, the returned strings include trailing and leading spaces and accelerators. These additional characters make the strings platform-specific. When FALSE, the returned strings do not include special characters.

For each item in the list of strings, GetContents returns only the first 255 characters, although the item might contain more characters than that.

Example

LIST OF STRING lsItems
lsItems = Open.Files.GetContents()