Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 1: For text – PB Docs 2019 – PowerBuilder Library

Syntax 1: For text – PB Docs 2019

Syntax 1: For text

Description

Retrieves or replaces the contents of the system clipboard with
text.

Syntax

Argument

Description

string (optional)

A string whose value is the text you want to place in
the clipboard. The string replaces the current contents of the
clipboard, if any.

Return value

String.

Returns the current contents of the clipboard if the clipboard
contains text. If string is specified, Clipboard returns the current
contents and replaces it with string.

Returns the empty string (“”) if the clipboard is empty or it
contains nontext data, such as a bitmap. If string is specified, the
nontext data is replaced with string. If string is null, Clipboard
returns null.

Usage

You can use Syntax 1 with the Paste, Replace, or ReplaceText
function to insert the clipboard contents in an editable control or
StaticText control.

Calling Clipboard in a DataWIndow control or DataStore
object

To retrieve or replace the contents of the system clipboard with
text from a DataWindow item (cell value), you must first assign the
value to a string and then call the system Clipboard function as
follows:

The DataWindow version of Clipboard, documented in Syntax 2 (and
in the section called “Clipboard” in DataWindow Reference), is only applicable to graphs.

Examples

These statements put the contents of the clipboard in the variable
ls_CoName:

The following statements place the contents of the clipboard in
Heading, and then replace the contents of the clipboard with the string
Employee Data:

The following statement replaces the selected text in the
MultiLineEdit mle_terms with the contents of the clipboard:

The following statement exchanges the contents of the StaticText
st_welcome with the contents of the clipboard:

See also

Clear

Copy

Cut

Paste

Replace

ReplaceText


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x