Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paste from clipboard & cursor position...
Message
From
22/09/2003 12:21:11
 
 
To
22/09/2003 11:47:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00831116
Message ID:
00831156
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform