Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress for commenting a block of code
Message
From
20/11/2001 20:58:33
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00584249
Message ID:
00584283
Views:
29
You could try something like this...

Create a program named Comment.prg:
LPARAMETERS tl_Comment


MOUSE CLICK RIGHT
IF tl_Comment
   KEYBOARD "M"
ELSE
   KEYBOARD "N"
ENDIF
Then, issue:
ON KEY LABEL ALT-C DO Comment.prg WITH .T.
ON KEY LABEL ALT-U DO Comment.prg WITH .F.
>That's reasonable, though it would be nice to have alt-c toggle commenting for a block of text.
>
>>I don't know if there is any shorter way, but I use the menu key on my keyboard (bottom-right, between Windows key and Control key) to bring up the right-click menu, then press "m" to comment or "n" to un-comment.
>>
>>>What is the keypress for commenting a selected block of code? I am tired of right-click, then selecting comment.
Previous
Reply
Map
View

Click here to load this message in the networking platform