Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Always start from the beginning of the field if empty
Message
 
 
À
26/01/2005 09:42:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00980565
Message ID:
00980779
Vues:
55
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform