Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Always start from the beginning of the field if empty
Message
 
 
To
26/01/2005 09:42:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00980565
Message ID:
00980779
Views:
59
It depends on what behavior you want. If you put code in GotFocus only than carret wouldn't moved to the beginning of the textbox when textbox has focus already.

>Would Click be the proper place to put this?
>Or would GotFocus be better?
>
>
>>>>Try
IF EMPTY(THIS.Value) AND This.SelStart <> 0
>>>>	This.SelStart = 0
>>>>	This.SelLength = 0
>>>>ENDIF	
>>>>
>>>Thanks Sergey! I can put this code to work in the Click Event of
>>>the Date fields in my apps.
>>
>>You're welcome.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform