You might try converting the memo field to a text field before exporting it. How many characters are in the largest memo field? I wrote a program that converts a memo field to one or more text fields of width 254 characters. If you want to use it, I'll be glad to email it to you. Just post your email address.
my memo fields contain about 4 pages of text in each field. so the 254 char limit is a bummer.
I guess i can scan through the table and write each record to the text file by interating through each mline and adding it to the text file but use \n to represent the line breaks. was hoping there is an easier way.
I need to use these memo field text to import into a mysql db. So far the simplest way is to import with a delimited text file.
Try:
repl all memofield with allt(memofield)
go top
copy MEMO memofield TO test.txt
for x = 2 to reccount()
go x
COPY MEMO memofield TO test.txt ADDITIVE
endfor
The amount of data that my program can handle is limited only by the number of fields it needs to create. It might not be useful in your application, but I used it to import a dbf into Access since the import function doesn't move memo fields. The program sets the memowidth to 254 characters, and creates a text field for each line in the memo field. I used 254 characters because that is the limit for a text field in FoxPro. If your memo field is 4000 characters (with no line breaks), the program would create 16 new text fields and copy the first line of the memo field to newfield1, the second line to newfield2, etc. Once you get the data into text fields and imported into the destination, you could concatenate the text fields into a single field on the new platform, obviously subject to the limitations of the new platform. If you think the program would help you, I'd be happy to give you a copy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.