Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import command line
Message
De
26/11/2010 10:15:07
 
 
À
26/11/2010 09:47:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01490559
Message ID:
01490567
Vues:
60
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform