Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import command line
Message
From
26/11/2010 10:15:07
 
 
To
26/11/2010 09:47:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01490559
Message ID:
01490567
Views:
59
>No thank's I try append howerver I prefer import if there is a way to make a command line from it
>best regards

Import from a txt is not supported, since there's no way VFP can tell the structure from a textfile. You simply have to use Append from. So you must first have or create a table/cursor, and then Append from your textfile.

To explain it better: Append From and Import From are more or less identical commands. The main differences are:
  • Append From requires that you already have a table or cursor open, with the desired sructure.

  • Import From will create a new table, but the file must contain information about the structure.

Since a text file is by definition only just that, a file with text in it, and with no structure, VFP doesn't have any information on the structure. This is why Import From does not support text files.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform