AutoPlay Media Studio 9

ComboBox.GetText

ComboBox.GetText

This is the first topic This is the last topic  

ComboBox.GetText

This is the first topic This is the last topic  

OverviewExamples

string ComboBox.GetText (

string ObjectName )

Example 1

-- Get the text of the item currently in the combobox.

combo_text = ComboBox.GetText("ComboBox1");

 

-- If there is text in the combobox, display a message with its text.

-- If no item is displayed in the combobox, notify the user.

if (combo_text ~= "") then

  Dialog.Message("ComboBox Text", "The current text in the combobox is '"..combo_text.."'.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

else

  Dialog.Message("ComboBox Text", "Currently no text is displayed in the combobox.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

end

Gets the currently displayed text from the combobox object "ComboBox1" and displays it to the user.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us