Hi. I've never used VFP before, but I'm tasked with exporting all data from a table (including memo fields) into a text file. I found a great article at microsoft.com called "How to export memo fields with other field types to a text file with Visual FoxPro." It contains program code, which when dropped into a new VFP program and run, prompts you for the table name of the data you want to export, and then prompts you for the location and name for your new text file. (It's a great little program.)
It works magnificently, however when I reach record number 1,734,080 of 3,089,360, the program stops running. At that point I have to end VFP with the Task Manager. Upon examination of the text file, it always stops at the same point on the same record.
* I can paste a lot more data into the text file, so I don't think it's a buffer issue.
* I've looked at the record in the VFP table and don't see anything strange (although I might not notice.)
* I tried to delete the record and "Pack" the table in VFP only to find I can no longer open that copy of the table. The error message says the table does not match the index. (I'm probably not doing this correctly.)
* I'd like to try creating three small tables instead, however I haven't quite figured out how to do that in VFP. Still working on that. There's a date field named "Date" in the table that I'd like to use as query criteria for this, however the syntax is not what I'm used to in SQL Server or Access, and I haven't figured it out yet.
* I thought maybe a datatype used in the program may not be large enough to accomidate 3 million (+) records. I've looked at the program, but as I said I've never used VFP, and I don't see a problem if it's in the program.
In the meantime, the powers-that-be need this for a vendor ASAP... (so what else is new, right?)
Does anyone have any idea why this program stops at record number 1,734,080 of 3,089,360? Any advice at all is greatly appreciated.
Tracey
It works magnificently, however when I reach record number 1,734,080 of 3,089,360, the program stops running. At that point I have to end VFP with the Task Manager. Upon examination of the text file, it always stops at the same point on the same record.
* I can paste a lot more data into the text file, so I don't think it's a buffer issue.
* I've looked at the record in the VFP table and don't see anything strange (although I might not notice.)
* I tried to delete the record and "Pack" the table in VFP only to find I can no longer open that copy of the table. The error message says the table does not match the index. (I'm probably not doing this correctly.)
* I'd like to try creating three small tables instead, however I haven't quite figured out how to do that in VFP. Still working on that. There's a date field named "Date" in the table that I'd like to use as query criteria for this, however the syntax is not what I'm used to in SQL Server or Access, and I haven't figured it out yet.
* I thought maybe a datatype used in the program may not be large enough to accomidate 3 million (+) records. I've looked at the program, but as I said I've never used VFP, and I don't see a problem if it's in the program.
In the meantime, the powers-that-be need this for a vendor ASAP... (so what else is new, right?)
Does anyone have any idea why this program stops at record number 1,734,080 of 3,089,360? Any advice at all is greatly appreciated.
Tracey