Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
General field to clipboard
Message
 
To
12/07/2001 13:05:20
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00529829
Message ID:
00529942
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform