Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy and paste within textboxes
Message
From
05/12/1998 06:27:38
 
 
To
01/12/1998 14:24:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00162895
Message ID:
00164427
Views:
25
>I've created an application with many text boxes and I would like to be able to copy values (ctrl-c, ctrl-v) from one text box to another within the form. I thought that this behavior would be enabled by default, but if it is, then I've managed to turn it off...
>
>So, is there something that I need to do to enable this behavior?
>If not, any idea what I could have done to turn it off?
>
>As always, thanks,
>Marc Mandel
>
>BTW, I'm using vfp 5.0a on NT WS 4.0 sp3

Marc,

You can add a method to a class that will do the copy and paste for you. Point to it like this where oFun is the object you created that contains the methods when loading the form.

ON KEY LABEL CTRL+C oFun.JetCopy
ON KEY LABEL CTRL+V oFun.JetPaste

The syntax in each function is:

JetCopy Method

_CLIPTEXT = _SCREEN.ActiveForm.ActiveControl.SelText

JetPaste Method

_SCREEN.ActiveForm.ActiveControl.Value = _CLIPTEXT
Previous
Reply
Map
View

Click here to load this message in the networking platform