Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting data during APPEND FROM
Message
From
30/10/1998 09:22:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/10/1998 09:09:41
Alec Dearden
Peterborough Hospitals Nhs Trust
Peterborough, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00152708
Message ID:
00152756
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform