Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Clipboard empty?
Message
From
10/04/2009 15:11:45
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01394105
Message ID:
01394203
Views:
46
Sergey,

I have done:

lnResult = openclipboard(_screen.hWnd)

debugger shows lnResult = 1

lnFormat = 0
lnFormat = EnumClipboardFormats(lnFormat)
lnCntr = 1
DO WHILE lnFormat > 0

ENDDO

debugger show in loop:

lnCntr = 2
lnFormat = 8
lnCntr = 3
lnFormat = 17
lnCtr = 4
lnFormat = 0

lnHdrop = GetClipboardData (15)

lnHdrop gives 0

Clipboard is definitely not empty: C&P in msPaint gives correct result

This is of course very good, but I would like to get a different result as would like to use this procedure in my errorhandler now the lnHdrop gives a 0 value regardless if clipboard has data or nodata.
Would you be able to give me a hint to catch the fact the clipboard has no data?

Thanks for replying.

Koen



ln
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform