Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wrong Date
Message
 
To
27/04/2005 18:06:19
Jim Obrien
BIS Industrial Services, Inc.
Perry, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009029
Message ID:
01009038
Views:
21
>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.

Oh, that kind of "Wrong date"... I expected something more "juicy" :)

set date and set century commands (among many others) have a data session scope, they revert to their own or default values as you change data session. This means that if you set century on in your main prg, it will not be respected in your form is the form has a private datasession, not sure if it applies in your case, but it never hurts to check :)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform