Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CTRL + C
Message
From
05/05/2001 18:31:45
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00503274
Message ID:
00503948
Views:
16
>Dear Friend
>
> Your code bellow is nice
>
> There's only a problema: Editbox is selected in blue, but is
>no trasferred to clipboard area.
> Is there anything missing ?
>
>
>
>
>
>
>
>
>In cmdYourCopy.click
>
>thisform.edit1.selstart = 1
>thisform.edit1.sellength = len(thisform.edit1.value)
>*thisform.edit1.setfocus
>*thisform.edit1.value = thisform.edit1.value+thisform.edit1.seltext
>
>At this point the content of edit1 is in the clipboard.
>You can feed Ctrl+V to the keyboard or use thisform.edit1.seltext to do what you need with the text

The Ctrl+V code will only work if an edit menu with that shortcut is available, or some other application that has that key combination available has focus.

You can still get your code into the clipboard with just a _CLIPTEXT = thisform.Edit1.Value.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform