Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Paste from clipboard & cursor position...
Message
De
22/09/2003 12:21:11
 
 
À
22/09/2003 11:47:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00831116
Message ID:
00831156
Vues:
19
>thanks for the suggestion. However, won't this always place the cursor at the end of the text in the control? If I paste some text in the control that already has text...say inserting a word between two other that already exist in the EditBox....I would still want the cursor position to be at the end of the inserted text...not automatically show up at the end of all the text.
>
Let me to understand better. . The field had (for instance) "abcdef_" so you inserted "ghij" and you want the cursor to be after "f"..

If so.. Here we go..
nwlenght                 = len(allt(Thisform.myedit.value))
* 
Thisform.myedit.value    = Thisform.myedit.value + _cliptext
Thisform.myedit.selstart = nwlenght
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform