Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox question about Date format
Message
De
26/11/2007 10:43:07
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/11/2007 08:00:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01271198
Message ID:
01271248
Vues:
27
>I have a TextBox control in Form.
>Format property of TextBox control is set to D (TextBox.Format = D) which is Date.

Which is good, because D ensures that the current Set Date format is used for date values...

>When I type in some date into TextBox control and I check VARTYPE of that value it returns "C" (VARTYPE(TextBox.Value)="C").
>I expected to return "D" instead of "C".
>
>Why is that happening?

...but the value is not a date, it's a string. You should either bind the textbox to a date field, or, if it's unbound, initialize its .value (in PEM sheet is also ok) to an empty date - {} is the shortest way I know of.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform