Author |
Topic: Missing \ (Read 1465 times) |
|
DDRM
Administrator
member is offline


Gender: 
Posts: 321
|
 |
Re: Missing \
« Reply #3 on: Mar 31st, 2015, 3:00pm » |
|
Hi Charles,
Actually, once I've corrected the smiley to :P ;-) it seems to work OK in the IDE, but stops with a "missing \" error once compiled.
I think the problem is that you have REMMED out a line, but it continues onto the next line, and the interpreter is foxed by finding the line continuation marker without a previous line to continue! If you REM out the continuation, it seems to work OK.
The fault seems to be in the REM line which starts PROC_dlgctrl(...
(You should also lose the DEFPROC at the beginning, and the ENDPROC at the end of your snippet, since it is no longer functioning as a procedure...)
Hope that helps (and is right, or Richard will be after me! :-) )
D
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: Missing \
« Reply #4 on: Mar 31st, 2015, 3:24pm » |
|
on Mar 31st, 2015, 3:00pm, DDRM wrote:| Actually, once I've corrected the smiley to :P ;-) |
|
I would request that everybody please takes the trouble to list code surrounded by [code] tags; it is after all one of the principal advantages of this forum over, for example, the Yahoo group.
Quote:| I think the problem is that you have REMMED out a line, but it continues onto the next line |
|
That's one way of putting it. Everything following REM is ignored by the interpreter, which is why you can include keywords, accented characters etc. in a remark without them confusing BBC BASIC. But it follows that the line-continuation character \ is also ignored following REM, so you cannot 'continue' a REM on the following line. There's no cause to anyway, since you might as well start the next line with REM as with \.
I wonder if the OP is familiar with the Add REMs option in the right-click (or Shift+F10) context menu. That's the easiest way of 'commenting out' a block of code, and will avoid the problem so long as any continuation lines are included in the block to be REMmed.
Richard.
|
| « Last Edit: Mar 31st, 2015, 3:30pm by rtr2 » |
Logged
|
|
|
|
CharlesB
New Member
member is offline


Gender: 
Posts: 46
|
 |
Re: Missing \
« Reply #5 on: Mar 31st, 2015, 6:01pm » |
|
Thank you all so very much. I will look into this right after work (am at lunch).
Sorry about not including the code tags. Frankly, even when Svein told me what to do, I did not understand him.
He said "
PS. Use the 'code' tags when posting code to avoid corruption of the code. In this case there is a smiley instead of PRINT. Which becomes 'tongueRINT' when pasted into the IDE. Hint: press the # button and put your code in between the 'code' and '/code' ."
I can understand hitting the # key and then the code, but do not know what he meant by 'code' and '/code."
Is there an example on the message board on how to post the code?
Again, thank you all so very much, Charles
|
| « Last Edit: Mar 31st, 2015, 6:02pm by CharlesB » |
Logged
|
|
|
|
|