Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting data during APPEND FROM
Message
De
30/10/1998 09:22:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/10/1998 09:09:41
Alec Dearden
Peterborough Hospitals Nhs Trust
Peterborough, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00152708
Message ID:
00152756
Vues:
27
>Cetin,
>Can you explain a little further ?
>Alec.
Is there any way in VFP 5.0 to convert the contents of a field to a different value during an APPEND FROM statment. I have to append data from an SDF file with dates in the format "CCYYMMDD" (ie "19980413"). I would like to automatically change these to a date format.
Could I use TRIGGERS ?

Thanks in advance,
Alec Dearden.
Alec,
Suppose you have SDF data like this :
Michael 19960219Suayama
Cetin   19610119Basoz
Efecan  19900628Basoz
and corresponing dbf structure :
Name char 8
Birthdate date
Lastname char 10. Then you just execute "append from mySDF.txt type SDF".
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform