Test clipboard

Command groupFlag affectedReversibleExecute on clientPlatform(s)
ClipboardYESNONOAll

Syntax

Test clipboard
 
field-name

Description

This command tests whether the data on the clipboard is suitable for pasting into the specified field or current selection. The command sets the flag to true if and only if there is data on the clipboard "suitable" for pasting into the specified or current field. "Suitability" here is defined by the standard type conversion built into Omnis, that is, a text field has to be presented with some text, and a picture field with something that can be handled as a picture, for example, a bitmap, metafile, PICT, OLE object, and so on.

Example

Test clipboard
 
iPicture

If flag true
  
Paste from clipboard
 
iPicture
 (
Redraw field
)

End If