There appear to be some limits. Try this code:
IF {this is a test} .#PI <> 0 THEN
WRITE -- really testy! 'It Works!'
ENDIF
RETURN
You'll get a syntax error on the WRITE statement, which, of course, means
that the IF worked.
Now try this:
IF {this is a test} .#PI <> 0 THEN
WRITE {really testy!} 'It Works!'
ENDIF
RETURN
Emmitt Dove
Manager, Converting Applications Development
Evergreen Packaging, Inc.
[email protected]
(203) 214-5683 m
(203) 643-8022 o
(203) 643-8086 f
[email protected]
From: [email protected] [mailto:[email protected]] On Behalf Of Alastair
Burr
Sent: Wednesday, June 03, 2009 6:47 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Double Hyphen Comments: good practice
I've not come across any problem and the help makes no observations other
than leaving at least one space if placed on the same line as a command...
but:
Are there any situations where it is preferable not to place a comment on
the same line as the command?
I only ask because, generally, I tend to avoid doing so with, for example
IF, SWITCH, WHILE. Am I being over-cautious?
Regards,
Alastair
----------------------------
Alastair Burr
St. Albans, UK.
[email protected]
-----------------------------