Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Text Boxes
Message
From
30/11/1999 12:02:12
 
 
To
29/11/1999 21:49:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00293408
Message ID:
00296924
Views:
25
>>>>How can I use the Valid Event of a Text Box to make sure a Valid date was typed in?
>>>In the init of the textbox put.
>>>this.value = {//}
>>
>>Oh, duh. Thanks, Evan, this one goes into my bag of tricks -- I was thinking down the lines of CTOD, as Mike (I think) posted....
>
>Garrett,
>
>It's even easier. In the Control.Value in the designer, put {} as the value or in the Init put This.Value= {}. Better yet, subclass the textbox and create a date box. In the KeyPress you can add code to make it work like the datebox in Quicken.

You don't really need to add code to make it work like Quicken. If you highlight the field (all selected), the + and - keys will increment/decrement the date respectively. Been this way since VFP5, at least.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform