Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing dates
Message
De
27/06/2001 11:13:12
 
 
À
27/06/2001 10:33:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00524124
Message ID:
00524179
Vues:
16
>I'm trying to import .dat files into VFP6.0. I use the Append from command after i set date to mdy. The problem is that my date fields, which are
>in "06/26/01" 8-character format, don't seem to be getting converted
>correctly when I use this command. However, when I use the "import wizard",
>they get imported correctly, using the same input data.
>
>When I use the append from in my program, the field gets ignored and my remaining fields get shifted one field to the left, so the remaining part of my table is all garbage.
>
>Is there somewhere I can see the actual code generated by the import wizard, so see if is different than the code i'm using in my regular program?
>
>I'd appreciate any help you can give me.
>
>Thanks!!
>
>Doug Bell
>doug.bell@pcca.com


I don't know the format of your .Dat file. But you could always create a receiving empty table structure (DBF) that mimics the formkat of the incoming .Dat file and use Char(8) for your date field. Then they would be inmported as chars but it is an easy process to change them to a date later (but beware of Y2K issues).


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform