Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Start
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00668524
Message ID:
00669124
Vues:
15
>Hi Sebastian,
>
>When the user clicks the 'Add' Button, I run that code that I posted earlier within an enable fields method that I created, then refresh the form. As you see in the code, i set the SelStart of that textbox then set the focus to it. The textbox is initially filled with '081'.
>
>The cursor initially starts in the first position, before the '081', but if I tab out of the field, then tab back into that field, the cursor then starts after the '081'
>
>Thanks,
>
>Michael Vassallo
Michael

Try setting the Focus first then the SelStart value
ThisForm.Text1.SetFocus()
ThisForm.Text1.SelStart = 3
HTH
Caroline
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform