INFO: Appending from a Delimited ASCII File Using Low-Level I/O (115418)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft FoxPro for Macintosh 2.5b
- Microsoft FoxPro for Macintosh 2.5c
- Microsoft FoxPro for MS-DOS 2.5
- Microsoft FoxPro for MS-DOS 2.5a
- Microsoft FoxPro for MS-DOS 2.5b
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for Windows 2.5b
- Microsoft FoxPro for Windows 2.6
This article was previously published under Q115418 SUMMARY
When you are importing data from other applications into FoxPro, a
delimited ASCII file is often used. However, if any of the data columns
from the original database extend beyond 255 characters, any text beyond
this point will be cut off. Text longer than 255 characters should be
stored in a FoxPro memo field. However, the APPEND FROM command does not
move data into memo fields.
To work around this behavior, you can use the low-level file I/O functions
in FoxPro to programmatically move the data from the text file into the
database including the memo field. A sample program for doing this is
provided below.
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbcode kbinfo KB115418 |
---|
|