Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting a Date in a Text Box
Message
From
02/11/2005 09:00:03
 
 
To
02/11/2005 08:47:50
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01064412
Message ID:
01064438
Views:
14
What is the problem with MouseDown? If the textBox already has the focus GotFocus event is not fired.

>>Put in GotFocus
>>
TextBox::GotFocus
>>
>>In VFP9
>>
TextBox::GotFocus
>>Nodefault
>>
>>>I need a way that when a user clicks in a date populated text box the entire date is selected to be over-written. I know the SelStart and SelLength will work on strings but how do you use this with dates?
>
>Attention, you lost MouseDown event with this.
>The correct solution is NODEF in the first MouseDown
>
>* Mousedowm
>if empty(this.tag)
>   nodef
>   this.tag = '*'
>endif
>
>* losfocus
>this.tag = ''
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform