Skip to main content
Version: 20 R7 BETA

Get text from pasteboard

Get text from pasteboard -> Function result

ParameterTypeDescription
Function resultStringReturns the text (if any) present in the pasteboard

This command is not thread-safe, it cannot be used in preemptive code.

Description

Get text from pasteboard returns the text present in the pasteboard.

Note: In the case of copy/paste operations, the pasteboard is equivalent to the Clipboard

If the pasteboard contains enriched text (for example in RTF format), the text will keep its attributes when it is dropped or pasted, if the destination area is compatible.

Note that 4D text fields and variables can contain up to 2 GB of text.

System variables and sets

If the text is correctly extracted, OK is set to 1; otherwise OK is set to 0.

See also

GET PASTEBOARD DATA
GET PICTURE FROM PASTEBOARD
Pasteboard data size