March 28, 2024, 07:03:40 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Commented out routines are returning sytax errors

Started by TexasPete, November 01, 2009, 05:28:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TexasPete

I know something unusual is going on. Plain old commented out routines are returning syntax errors.
How do I get around this.
I am putting each comment on a separate  and distinct line.
This just started. I did read about the problem with remark , but I thought as long as I used a separate line there would be no problem.

Thanks
Texas Pete

aurelCB

Pete this is no problem then is roule for write code in CBasic editor.
Give us piece of code...

LarryMc

LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

aurelCB

Yeah, :D
Good question Larry.
As i use this two type work fine
sign '
sign ;


TexasPete

Larry, I was using  the quote . I spent several hours trying to figure this out. CB was also giving me the wrong line for the actual error. I finally found out what was wrong. It keep saying there was and error on a line for the command "return"

I corrected the following and the error message went away. If it had given me the correct line the error was on I would have found it sooner.


FontWeightIndex= GETSELECTED (wMain1,41)
' ---This is corrected. I had left off the parenthesis



Thanks Larry and aurel,

Texas Pete

LarryMc

And, as usual, if you had posted the code someone else could possibly have helped you.


I give up. ;)

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library