LAutomation::Redo

#include "ltwrappr.h"

L_INT LAutomation::Redo (dwFlags=0);

L_UINT32 dwFlags;

/* reserved */

Repeats that last automation operation performed in the active automation container.

Parameter

Description

dwFlags

Reserved for future use. Must be 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function can be called for each process "undone" in the active automation container by calling LAutomation::Undo. For example, if LAutomation::Undo has been called three times, to undo three processes, then calling LAutomation::Redo can redo those three processes. The first call to LAutomation::Redo will redo the first process; the second call will redo the second process and the third call will redo the third process.

Required DLLs and Libraries

LTAUT

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LAutomation::CanRedo, LAutomation::Undo, LAutomation::SetUndoLevel, LAutomation::GetUndoLevel

Topics:

Undoing and Redoing Automation Operations

Example

This example shows how to redo the last automation operation.

L_INT LAutomation_RedoExample(LAutomation &lauto)
{
   L_INT nRet;
   nRet = lauto.IsValid ();
   if ( SUCCESS == nRet ) /* check the validity of the automation handle */
   {
      L_BOOL fCanRedo ;
      /* query the ability of redoing */
      fCanRedo = lauto.CanRedo () ;
      if ( fCanRedo )
      {
         /* redo the last automation operation */
         nRet = lauto.Redo () ;
         if(nRet != SUCCESS)
            return nRet;
      }
   }
   else
   {
      return nRet ;
   }
   return SUCCESS ;
}