>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.