Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET CENTURY & Data Sessions
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SET CENTURY & Data Sessions
Divers
Thread ID:
00162231
Message ID:
00162231
Vues:
43
I guess I'm confused about the use of the SET CENTURY command in private data sessions (VFP 5.0a). I created a test form with three text boxes. I set the form to the default data session and typed the following in the command window...

SET CENTURY TO 19 ROLLOVER 60

In the Init of the form I have...

WITH THISFORM
.Txt1.Value = DATE()
.Txt2.Value = {11/29/45}
.Txt3.Value = {11/29/65}
ENDWITH

When I run the form I get what I expect, 11/29/1998, 11/29/2045, 11/29/1965.

However, when I change the form's data session to private and put the SET CENTURY TO 19 ROLLOVER 60 in the Init of the form (or in the Load) and run the form I get: 11/29/98, 11/29/2045, 11/29/65. So, what am I missing here???
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform