Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelLength / SelStart Property VFP 3.0
Message
De
01/06/1999 12:54:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00224979
Message ID:
00224995
Vues:
18
>It would appear that I seek a solution in the wrong place...
>My users would like to have four specific fields on a form to entirely highlight the existing contents when selected during edit.
>
>By typing, the original contents would be over written.
>
>Highlighting does not occur for either of the following code:
>In Form Init/Refresh during edit mode
>- thisform.cLENGTH.SelLength=7
>- thisform.cLENGTH.SelStart= 2
>Nor, In Got Focus of cLENGTH object
>- this.cLENGTH. (etc...)
>
>What are these Properties good for?
Edgar,
I think mistakenly you used them in wrong order. SelStart resets cursor position. Try :
with this
.SelStart = nStart
.SelLength = nLength
endwith

.Sellength = len(.value) would select all.
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