Error getting tags :
error 404Error getting tags :
error 404 clipboardData | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
clipboardData
Basics
Expander triangle
Type
Property
Syntax

set the clipboardData to clipboardArray

Introduced
2.0
Changed
2.9
Environment
Desktop,Web
Platform Support
Mac OS X,Windows,Linux
Security
None required
Summary
Specifies what data and of what type is on the clipboard.
Examples

set the clipboardData["text"] to "Meep!"
set the clipboardData["RTF"] to the RTFText of field "Info"
set the clipboardData["image"] to image 1

Additional Comments
Expander triangle

Use the clipboardData property to put data in the clipboard in a specified format, or to get the contents of the clipboard, without copying or pasting.

Value:

The clipboardData pseudo-array provides access to the data to be transferred through a drag-drop operation. The following types can be queried or set:

text - plain text in the native encoding to the platform (MacRoman on OS X, Windows-1252 on

Windows and ISO8859-1 on Unix)

unicode - plain text in UTF-16 encoded using host byte order

styles - styled text in Revolution internal styled-text format

html - styled text in Revolution HTML format

rtf - styled text in Revolution RTF format

image - the 'text' of an image object, i.e. binary data in PNG, GIF or JPEG format

files - a return-delimited list of filenames in Revolution format

objects - one or more Revolution objects serialized into an internal format

private - an arbitrary application-defined string. This format will only be visible within the same

Revolution process.

If the clipboard does not contain data of the specified type, the array element for that type is empty. (For example, if the clipboard contains text, clipboardData["image"] is empty.)

Comments:

The clipboardData property is populated automatically when the clipboard content is changed, either by using the cut or copy command, or by cutting or copying in another application.

You can query the keys of the clipboardData to determine what types of data are on the clipboard. For example, if the clipboard contains styled text, you can put that text (in htmlText format) in a variable with the following statement:

put the clipboardData["html"] into tHTML

Note that the objects type can now be queried and will return a binary string that can be re-used. Furthermore, this type is now published to all applications and so object cut/copy/paste operaions can occur between Revolution processes. To change the contents of the clipboard, you can set the clipboardData property directly. For example, the following statement places the text "Hello World" on the clipboard:

set the clipboardData["text"] to "Hello World"

The above statement is equivalent to selecting the text "Hello World" in a field and choosing Edit menuCopy, or to using the copy command. The data you place on the clipboard is accessible to your application using the paste command, and to other applications (that support pasting text) using the application's Paste menu item.

Tip: To quickly find out what kind of data is on the clipboard, use the clipboardfunction.

User Comments
Expander triangle
User thumbnail
rodney@oceanbrowser.com
StarStarStarStarStar
May 1, 2010
OSX. If user is selecting files in the Finder, it seems clipboarddata["files"] will only return the first file reference (i.e. 1 file only) even if multiple files were selected and copied to clipboard.