IonicWind Software

Creative Basic => General Questions => Topic started by: TexasPete on November 01, 2009, 05:28:49 AM

Title: Commented out routines are returning sytax errors
Post by: TexasPete on November 01, 2009, 05:28:49 AM
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
Title: Re: Commented out routines are returning sytax errors
Post by: aurelCB on November 01, 2009, 09:09:27 AM
Pete this is no problem then is roule for write code in CBasic editor.
Give us piece of code...
Title: Re: Commented out routines are returning sytax errors
Post by: LarryMc on November 01, 2009, 09:55:30 AM
what are you using for your comment symbol?

Larry
Title: Re: Commented out routines are returning sytax errors
Post by: aurelCB on November 01, 2009, 03:46:55 PM
Yeah, :D
Good question Larry.
As i use this two type work fine
sign '
sign ;

Title: Re: Commented out routines are returning sytax errors
Post by: TexasPete on November 03, 2009, 02:40:25 PM
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
Title: Re: Commented out routines are returning sytax errors
Post by: LarryMc on November 03, 2009, 03:02:50 PM
And, as usual, if you had posted the code someone else could possibly have helped you.


I give up. ;)

Larry