CheckBox.GetText

string CheckBox.GetText ( 

string ObjectName )

Example 1

-- Get the current text from the checkbox
sCurrentText = CheckBox.GetText("CheckBox1");

-- Check to see if any errors occurred calling the CheckBox.GetText 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

-- Print the current text to the debug window
Debug.Print("CheckBox Text: " .. sCurrentText .. "\r\n");

Gets the current text of the "CheckBox1" checkbox object and outputs it to the debug window.

See also:  Related Actions