L_AutRedo

Summary

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

Syntax

#include "ltaut.h"

L_LTAUT_API L_INT L_AutRedo(pAutomation, dwFlags)

Parameters

pAUTOMATIONHANDLE pAutomation

Pointer to an automation handle.

L_UINT32 dwFlags

Reserved for future use. Must be 0.

Returns

Value Meaning
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 L_AutUndo. For example, if L_AutUndo has been called three times, to undo three processes, then calling L_AutRedo can redo those three processes. The first call to L_AutRedo 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

See Also

Functions

Topics

Example

This example shows how to redo the last automation operation.

L_INT AutRedoExample(pAUTOMATIONHANDLE pAutomation) 
{ 
   L_INT nRet; 
 
   nRet =  L_AutIsValid ( pAutomation ); 
   if ( SUCCESS == nRet  ) /* check the validity of the automation handle */ 
   { 
      L_BOOL fCanRedo ; 
 
      /* query the ability of redoing */ 
      nRet = L_AutCanRedo ( pAutomation, &fCanRedo ) ; 
      if(nRet != SUCCESS) 
         return nRet; 
 
      if ( fCanRedo ) 
      { 
         /* redo the last automation operation */ 
         nRet = L_AutRedo ( pAutomation, 0 ) ; 
         if(nRet != SUCCESS) 
            return nRet; 
      } 
 
      return SUCCESS ; 
   } 
   else 
   { 
      return nRet ; 
   } 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Container and Automation C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.