Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox question about Date format
Message
From
26/11/2007 10:43:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/11/2007 08:00:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01271198
Message ID:
01271248
Views:
28
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform