AutoPlay Media Studio 9

Progress.SetCurrentPos

Progress.SetCurrentPos

This is the first topic This is the last topic  

Progress.SetCurrentPos

This is the first topic This is the last topic  

OverviewExamples

Progress.SetCurrentPos (

string ObjectName,

number Pos )

Example 1

-- Get the current position

nCurrentPos = Progress.GetCurrentPos("Status");

 

-- Increment the current position

Progress.SetCurrentPos("Status", nCurrentPos + 1);

 

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

Gets the current position of the "Status" progress meter and increments it by one.

See also: Related Actions


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