Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How export to plain
Message
From
26/08/1999 11:27:15
 
 
To
26/08/1999 10:58:17
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00257926
Message ID:
00257962
Views:
14
>Hi there
>i have a external program (not VFP) who needs a plain from data of my table (in Vfp)im trying to transport a table into a text plane file
>but the thing its that this plain most to get any information in excatly position and exactly width
>
>for example
>the external program (not vfp) need a plain exactly in this way
>field position long type
>name 1-1 1 alfanumeric
>years 2-5 3 numeric
>comment 6-30 24 alfanumeric
>nick 31-40 9 alfanumeric
>
>
>i have 10 records in my table(vfp) anyone with the name,year,comment in blank(its means nothing writed in this field) and nick
>
>so i create this table with the same witdh that the plain text need and export it to txt separated with space and delimited with ""
>
>and i see that the program that use this plain in any process shows the record in error (the field seems out of order and some fileds characteres mixed in a field to the other)
>
>are there any tip to create the plain exactly like the other program need it without ues file-export menu in vfp??
>

If the field sizes in your table match the field sizes for your output exactly, you can use TYPE SDF rather than DELIMITED, eg:

USE MyTable
COPY TO (cExportFile) TYPE SDF

If the field sizes don't match exactly, I'd use either low-level file IO, textmerege or creation of a string with appropriate formatting and use STRTOFILE() to write it out.
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