Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine method name
Message
From
16/07/2009 14:58:43
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01412763
Message ID:
01412804
Views:
83
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform