BBC BASIC for Windows
« Missing \ »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:40pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Missing \  (Read 1465 times)
DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx 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
User IP Logged

rtr2
Guest
xx 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 » User IP Logged

CharlesB
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 46
xx 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 » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls