Clipboard.Copy

Top  Previous  Next

Copies a string value to the clipboard.

 

Syntax

function Clipboard.Copy(StringToCopy: string): boolean

function Clipboard.Copy(StringToCopy: string; Encoding: integer): boolean

 

Alternative Names

ibec_CopyToClipboard

 

Description

Copies a string value to the clipboard, optionally in a specific encoding.

 

StringToCopy holds a string value.

 

Encoding holds one of the predefined encoding constants:

__seAnsi
__seUTF8

 

The Return Value is TRUE for a successful execution, FALSE otherwise.

 

See Also

Clipboard.Paste

 

Example

execute UDSBlock returns (str_value varchar(100))

as

begin
  /* copies a value to the clipboard */

  Clipboard.Copy('this is on the clipboard now');

  

  str_value = Clipboard.Paste();

  suspend; /* returns the value on the clipboard */

end