Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wrong Date
Message
 
À
27/04/2005 18:06:19
Jim Obrien
BIS Industrial Services, Inc.
Perry, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01009029
Message ID:
01009850
Vues:
12
>Here is a weird one for you.
>
>I "APPEND FROM" a text file with the "SDF" type. The text file has dates in the "short year" format (i.e. 04/18/05). When the program executes from my computer (which has the full VFP9 installed), the dates are appended correctly. But when the program runs from another computer, using only the runtime files, the date comes in as "04/18/1905". I have SET CENTURY ON in the program.
>
>Keep in mind that in VFP7 I didn't have this problem.

Jim,

The source of the problem is the format of the text file. VFP stores dates as YYYYMMDD. The easiest way to do this is to parse the file and convert the MM/DD/YY format to this.

You might want to look at the series of article that the late Ed Rauh and I wrote on the Windows Script Host. In particular, look at the last article in the series about the Regular Expression parser.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform