Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save and extract images into a memo file ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00278188
Message ID:
00278695
Vues:
19
>I would like to save images in a memo file. What kind of memo field do I need ? How can I save an image into a memo file, how can I display it on screen and how can I save it from a memo file to a field ? Is it possible in vfp directly or should I do it in VB as an ocx ? I didn't find any example of this in the help.
>

While it can be done with a general field, a general field is quite limiting. a Memo field should work well, you can either use

REPLACE MyMemoFld WITH FILETOSTR(cMyGraphicsFileSourceName) to save and

STRTOFILE(MyMemoField,cMyGraphicsFileTargetName) to extract, or you can use

APPEND MEMO MyMemoField FROM FILE SourceFileName OVERWRITE to save and

COPY MEMO MyMemoField TO TargetFileName to extract

the later works with VFP version prior to VFP6, and continues to work in 6.

NOTE: APPEND MEMO and COPY MEMO both take a filename, not a character expression for their argument - if you stick the name in a memory variable, use name resolution (encapsulate the variable in parentheses) to convert the string to a name.

>Thanks
>Eric.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform