Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelectOnEntry/GotFocus
Message
De
19/11/2001 12:28:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00583553
Message ID:
00583560
Vues:
17
>When the cursor (your blinking one) is moving through textboxes, you can set the SelectOnEntry property to .T. and set your format property to 'K' to have FoxPro display a selection over the data within the control.
>
>When the below code is placed in the GotFocus Event, it takes care of selecting everything within the control, whether the field/control is empty or not, when the control contains Character or Date data type data. However, it does not seem to work for numeric data fields. Anyone know how to make this work for numeric data?
>
>Textbox::GotFocus()
>This.SelStart=0
>This.SelLength=This.MaxLength
>NODEFAULT
>
>Of course, I have set the MaxLength to the length of the field in each case for the text controls.
>
>Thanks,
>
>Cecil
>(a Texan out of his State)
I think setting it to a high value like 20 would do (or to len(this.Inputmask) if not empty).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform