Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting a Date in a Text Box
Message
From
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:
01064436
Views:
15
>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 = ''
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform