Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy and paste within textboxes
Message
De
05/12/1998 06:27:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00162895
Message ID:
00164427
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform