Xbasic

CLIPBOARD.GET_DATA Function

Syntax

Variable as A = CLIPBOARD.Get_Data([N cb_type|C cb_typeName[,C options]])

Arguments

cb_type|C

A number that specifies the type of data in the Clipboard. Valid values for Clipboard_Format are:

Format
Value
Text

1

DIB (Device Independent Bitmap)

8

DIF (Data Interchange Format)

5

SYLK

4

TIFF

6

options

Character

Description

The CLIPBOARD.GET_DATA() method gets data from the clipboard and stores it in Variable. The type of data retrieved from the clipboard is determined by Clipboard_Format. You can register a new Clipboard_Format value with the CLIPBOARD.REGISTER_TYPE() method.

Example 

This script puts the record into change mode and writes data from the clipboard into the account_number field.

tbl = table.current()
tbl.change_begin()
tbl.account_number = :clipboard.get_data()
tbl.change_end(.T.)

Limitations

Desktop applications only.

See Also