Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opposite of APPEND GENERAL
Message
From
05/02/2002 09:38:48
 
 
To
05/02/2002 08:36:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00615383
Message ID:
00615435
Views:
29
Hi!

If you have some automation application, just try to use its properties and methods. For example, as far as I know, for MS Word document in General field you can through OLEBoundControl get access to the MS Word OLE Automation Application and use "Save As" like method to save the document stored in General field to the file. I guess this is possible with bitmaps, but this only requires appropriate application. Try to search in this direction.

If all fields are BMP files, you can use "COPY TO" command to cpy each general field content in a loop into the separate temporary table with only one general field and only one records. Then using approach similar to what is used in FAQ#7995, "convert" General field into the Memo field and read content of general field directly from the memo field, extracting from it the bitmap content, that is always at the fixed position (byte) in there. This is only in case all General fields contain BML file. For different file types the offset for real content of the file might be different.

HTH.

>>>>>Is there an opposite of APPEND GENERAL? One that allows me to copy a general field into a file on disk?
>>>>>
>>>>>Hilmar.
>>>>
>>>>Is Copy Memo any good?
>>>
>>>I don't know - according to the documentation, it only seems to be designed for memo fields. General fields are in the same .FPT file, but hold quite a different kind of information.
>>>
>>>Hilmar.
>>
>>I guess that it will depend on what you are going to do with the file afterwards!
>
>OK, a member of an other discussion group asked this question - but the situation seems to be that pictures are currently saved in a general field. I recommended to use JPG files instead. So, the basic idea is to convert pictures, saved in a general field, to JPG - or to any graphic format, for that matter.
>
>Hilmar.
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform