Returns an integer indicating whether an item on the Clipboard object matches a specified format. .
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 |
|
The system clipboard internal variable |
||
|
enFormat |
An integer that specifies the Clipboard object format. |
|
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 |
The GetFormat method returns True if an item on the Clipboard object matches the specified format. Otherwise, it returns False.
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