GetFormat Method (AClipboard)

Returns an integer indicating whether an item on the Clipboard object matches a specified format. .

Syntax

bOk = Clipboard.GetFormat(enFormat)

The GetFormat method syntax has the following parts:

 

Name

Type

Description

bOk

Bool

Returns True if clipboard contains the specified format; otherwise returns False

Clipboard

AClipboard

The system clipboard internal variable

enFormat

enumAClipboardFormat

An integer that specifies the Clipboard object format.

Where

enumAClipboardFormat:

 

Name

Value

Description

acfText

1

Text string

acfBitmap

2

Bitmap picture

acfMetafile

3

Metafile picture

acfDIB

8

Device-independent bitmap picture

acfPalette

9

Pallete

acfEnhMetafile

14

Enhanced metafile picture

acfDDELink

0xBF00

DDE Conversation Information text string

acfRTF

0xBF01

Rich text format text string

acfIcon

0xBF02

Icon picture

Comments

The GetFormat method returns True if an item on the Clipboard object matches the specified format. Otherwise, it returns False.

Example

The following example shows how to paste text from the clipboard to the text box control:

if Clipboard.GetFormat(acfText)

s=Clipboard.GetText()

edtText.SelText=sText

endif

Applies to

AClipboard

See Also

GetPicture, SetPicture, SetText