Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
General field to clipboard
Message
 
À
12/07/2001 13:05:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00529829
Message ID:
00529942
Vues:
25
How about something like this:
*
handlein=FOPEN("temp.fpt")
gnEnd=FSEEK(handlein,0,2)
gnTop=FSEEK(handlein,0)
str1=FREAD(handlein, gnEnd)
BitmapHeaderOffset = AT("BM",str1)
IF BitmapHeaderOffset > 0
*Calculate the beginning of the bitmap
BitmapOffset = BitmapHeaderOffset - 1
*Return the bitmap
str2= RIGHT(str1,LEN(str1)- BitmapOffset)
ENDIF

I think there's a VB example in the MS knowledgebase that's about 10x longer...
>Anyone know how to extract a bitmap that was stored in a general field of a table and get it into the
>clipboard? I have looked at the gentofil.prg from the files section and guess that I can copy it to a
>.BMP file, if necessary.
>
>TIA,
>Mike Timpe
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform