Hi all. I was wondering if there is an easy way to write a table to a text file the looks like a label.
ex:
MYTABLE.DBF
name ADDRESS CITY,STATEZIP
Mr. Jones 1111 Main New York, NY 11111
I need to put all records in mytable.dbf into text file like so:
Mr. Jones
1111 Main
New York, NY 11111
(empty line, serves as record separator)
next record
I'm kind of new to VFP, so I've tried the label designer, but when I write it to file filename ascii, the end of each page hase blank spaces. I need the spacing to be consistent throughout the text file. I've also tried to insert chr(13)+chr(10) after each field then copy to xxx.txt type delimited with space, but I get '' preceeding every field. Maybe filetostr(). Hopefully this makes sense. Any tips would be greatly appreciated. Thanks!
ex:
MYTABLE.DBF
name ADDRESS CITY,STATEZIP
Mr. Jones 1111 Main New York, NY 11111
I need to put all records in mytable.dbf into text file like so:
Mr. Jones
1111 Main
New York, NY 11111
(empty line, serves as record separator)
next record
I'm kind of new to VFP, so I've tried the label designer, but when I write it to file filename ascii, the end of each page hase blank spaces. I need the spacing to be consistent throughout the text file. I've also tried to insert chr(13)+chr(10) after each field then copy to xxx.txt type delimited with space, but I get '' preceeding every field. Maybe filetostr(). Hopefully this makes sense. Any tips would be greatly appreciated. Thanks!