ComboBox.SetText

ComboBox.SetText ( 

string ObjectName,

string Text )

Example 1

-- Add two new items to the "ComboBox1" combobox object.
ComboBox.AddItem("ComboBox1", "Item One", "C:\\One.txt");
ComboBox.AddItem("ComboBox1", "Item Two", "C:\\Two.txt");

-- Sets the displayed text in the combobox object.
ComboBox.SetText("ComboBox1", "New Text");

-- Check to see if any errors occurred calling the ComboBox.SetText action.
-- If any error occurred, display the error message.
error = Application.GetLastError();
if (error ~= 0) then
   Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
end

Adds two items to the combobox object "ComboBox1" and then changes the displayed text.

See also:  Related Actions