Toggle comment selection button to uncomment macro .

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Toggle comment selection button to uncomment macro .

Johan Pauwels
As far as I know, commenting out a macro call does not work with the asterix sign : *
So this does not uncomment, the macro will still run

* !thisisamacrocall


However, it does work with backslash + asterix.
This works:
/* !thisisamacrocall

Nothing will happen is I run this.


Now newer versions of SPSS have the "toggle comment" button, which enables you to select large pieces of syntax and comment/uncomment them as a whole.
It does it by placing the asterix before each command.

I guess you hear me coming:
Is there any way to have the toggle comment button to place '/*' instead of '*', so I can uncomment several macro calls at once?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Toggle comment selection button to uncomment macro .

Jon K Peck
Macro expansion is sometimes useful in a comment.
The /* notation has the disadvantage that using it to comment  out code does not always work.
For example,
/*freq educ /* a comment */ x  z.
results in the line
x z.
because the within-line comment has been terminated.  In-line comments do not nest.


Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Johan Pauwels <[hidden email]>
To:        [hidden email],
Date:        11/22/2012 09:03 AM
Subject:        [SPSSX-L] Toggle comment selection button to uncomment macro .
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




As far as I know, commenting out a macro call does not work with the asterix
sign : *
So this does not uncomment, the macro will still run

* !thisisamacrocall


However, it does work with backslash + asterix.
This works:
/* !thisisamacrocall

Nothing will happen is I run this.


Now newer versions of SPSS have the "toggle comment" button, which enables
you to select large pieces of syntax and comment/uncomment them as a whole.
It does it by placing the asterix before each command.

I guess you hear me coming:
Is there any way to have the toggle comment button to place '/*' instead of
'*', so I can uncomment several macro calls at once?

Thanks



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Toggle-comment-selection-button-to-uncomment-macro-tp5716427.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD