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