Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 Date Import Bug
Message
De
24/05/1999 13:12:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00222044
Message ID:
00222135
Vues:
40
>>>I am not sure if this is known or not, but I think I found a serious bug in VFP6 (or I'm just doing it wrong). When importing an SDF (text) file with a date in a MM/DD/YY format, VFP6 interprets a date like "01/01/99" as "01/01/0099" when viewed after import with CENTURY on. VFP5 and FoxPro 2.x do not exibhit this behavior and import the date properly as "01/01/1999".
>>>
>>>I have tried playing with STRICTDATE (all settings) and CENTURY and nothing seems to effect it's behavior.
>>>
>>>To recap:
>>>
>>>I am importing a text file with dates that read "MM/DD/YY" with VFP6. These dates are being imported to date fields within the table, but are being interpreted as "MM/DD/00YY" by VFP6. VFP5 and Fox 2.x work fine...
>>>
>>>Any work-arounds for this?
>>>
>>>Thanks....
>>>
>>>-Matt Gordon
>>Matt,
>>Quickest could be :
>>replace dDate with gomonth(dDate, 1900 * 12) for year(dDate) = 0
>>Cetin
>
>Make that for int(year(dDate)/100) = 0
>
>:)
>Rich.
Hi Rich,
I should keep my mouth shout when :
1) It's friday
2) Have a great tendency to fix HP designjet (+ JetDirect card) with a hammer.
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