Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve 'picture' from vb's active-x control
Message
 
 
À
06/09/2001 09:30:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00552966
Message ID:
00553087
Vues:
21
Hi!

>Hi Vlad, thanks for a quick response.
>I had never saved a picture to a memo field. Can you explain to me more detail about this? Thanks.

&& save picture file content in the memo field
replace MyTable.MyMemoField with FileToStr("MyPict.bmp")
&& more quick approach
Append memo MyTable.MyMemoField FROM ("MyPict.bmp") OVERWRITE

&& Store picture from memo into the file
StrToFile(MyTable.MyMemoField,"MyPict.bmp")

In these samples instead "MyPict.bmp" you can use variable that holds a file name with fill path.

This is for VFP dtabase.

When you working with remote data, see FAQ#7995 - you will require to do additional things because VFP get binary data from remote server into the general field by default.

HTH.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform