LAutomation::Paste

#include "ltwrappr.h"

L_INT LAutomation::Paste(dwFlags = 0)

Copies the valid automation data on the clipboard to the active automation container.

Parameters

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

Call LAutomation::ClipboardDataReady to determine whether valid automation data exists on the clipboard.

To copy automation data from the active automation container to the clipboard use LAutomation::Copy. Automation data can be cut from the active automation container and placed on the clipboard using LAutomation::Cut.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example shows how to paste the current clipboard contents (if any) to the current active automation.

L_INT LAutomation_PasteExample(LAutomation &lauto) 
{ 
   L_INT nRet; 
 
   nRet = lauto.IsValid(); 
 
   if ( SUCCESS == nRet ) /* check the validity of the automation handle */ 
 
   { 
 
      L_BOOL fReady ; 
 
      /* check if there is a valid automation mode data on the clipboard */ 
 
      fReady = lauto.ClipboardDataReady () ; 
 
      if ( fReady ) 
 
      { 
 
         /* paste the data to the current active container */ 
 
         nRet = lauto.Paste () ; 
         if(nRet != SUCCESS) 
            return nRet; 
 
      } 
 
   } 
 
   else 
 
   { 
 
      return nRet ; 
 
   } 
 
   return SUCCESS ; 
 
} 

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

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