Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is Clipboard empty?
Message
De
10/04/2009 15:11:45
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01394105
Message ID:
01394203
Vues:
47
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform