Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine method name
Message
De
16/07/2009 14:58:43
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01412763
Message ID:
01412804
Vues:
84
>CTRL+C does not affect copied code. You're confusing it with CTRL+X.

Nope. I call a proc wirth an ON KEY LABEL that has been reduced to:
KEYBOARD '{CTRL+A}' && Highlights everything
KEYBOARD '{CTRL+C}' && Erases everything

CTRL+C entered from the keyboard works as one would expect, i.e., copying the highlighted text to the clipboard. KEYBOARD "{CTRL+C}" erases everything w/o copying to clipboard. I'll try your suggestion from your other post.

Thanks,

Gary





>
>>I'm playing with a builder and I'm trying to figure out how to determine the currently being edited method in a VCX.
>>
>>I basically want to copy all the method code to _cliptext, dink with it and replace the method code with the new and hopefully improved code.
>>
>>KEYBOARDing ctrl+a, ctrl+c seems to erase the method code, which I'd rather not do if possible. I was thinking some readmethod() and writemethod() might work, but I don't know how to get the name of the method programmatically.
>>
>>Any ideas?
>>
>>Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform