Progress.GetText

string Progress.GetText ( 

string ObjectName )

Example 1

-- Get the current text from the Progress Bar
sCurrentText = Progress.GetText("Status");

-- Check to see if any errors occurred calling the Progress.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("Progress Text: " .. sCurrentText .. "\r\n");

Gets the current text of the "Status" progress meter and outputs it to the debug window.

See also:  Related Actions