Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extracting memo fields to ascii
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00279426
Message ID:
00279441
Views:
11
>We have a client that wants the data (including a memo field) in comma delimited format. Is there a way to extract the contents of a memo field into an ascii record (one per line, or comma delimited)?

You could write the file using low-level file I/O a field at a time easily, enough, terminating each record's data with a CR/LF pair, but it wouldn't be a one-line command, and you may encounter problem characters (like embeded CR or LF characters in the memo field) that you'd have to handle.

Because memo fields aren't fixed length, you'd have to use some sort of delimited file. Unless you can be certain that no memo field contains a comma, you'll need to quote-encapsulate the memo field content IAC if you use a CSV-type file.

You might be better off using a hierarchical data representation like XML if the client can read XML data.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform