Example

The following is an example of using the CopyText method.

//-------------------------------------------------------------------
// ECLPS::CopyText
//
// Copy text from Presentation Space to clipboard.
//-------------------------------------------------------------------
void Sample126() {
    
ECLPS PS('A');         // PS object for connection A
long row, col, length2copy;
 
// Note that an ECL error is thrown if we try to write to
// a protected field.
try {
  	printf("Please enter the position and length to copy from PS [row col length2copy] \n");

  	scanf("%ld %ld %ld", &row, &col, &length2copy);   
		PS.CopyText(row, col, length2copy); 
		} 
catch (ECLErr Err) {
   printf("Failed to copy text: %s\n", Err.GetMsgText()); 
} 
} // end sample 
//-------------------------------------