|
Post by davos1 on Mar 31, 2009 10:22:24 GMT -5
Hi, I was trying to remark code in a program, then I used the REM command (also the ') to , then I got some compile error. an example. rem html "any" (where any could be any code like js, html,etc... the error happens when a single or double quote " " is found.
|
|
|
Post by davos1 on Mar 31, 2009 10:26:22 GMT -5
I mean, when one " or two "" are found
|
|
|
Post by votan on Mar 31, 2009 15:28:01 GMT -5
What version do you use? The current 1.0.1 build 2.44 seems to work just fine and does not cause any compilation errors. Also.. please post a usable portion of the code to track down the problem...
|
|
|
Post by kokenge on Mar 31, 2009 20:05:03 GMT -5
I suppose everyone has already ran across the remark with a <tab> error Maybe it's not the " that is causing the problem, but a <tab> in the remark. These will cause problems '<tab>remark rem<tab>remark
Maybe this is the problem.
|
|
|
Post by davos1 on Apr 1, 2009 1:07:33 GMT -5
running run basic personal server v1.01 build 2.44 I deleted that code, but I found another text in the same area. it seems that it happens when a tab is inside any part of the quotes of the html instruction. but the html instruction handles well it like html "<tab> text" works well but when adding the rem rem html "<tab> text" it says error...
|
|
|
Post by votan on Apr 1, 2009 2:52:23 GMT -5
Yes, the tab problem is kind of a known bug.... for some reason in a rem-line, anything behind the tab is treated as normal code again.. so the tab works kind of a line break. No matter where you put the tab... even in front of the rem itself it will make the whole rem line a command. Easiest worarround... do not use tabs in rem lines.
|
|
|
Post by StefanPendl on Apr 1, 2009 5:05:27 GMT -5
Easiest worarround... do not use tabs in rem lines. Since any line could get remarked, do not use tab characters at all in your source code. If you use an external code editor, make sure to check "Replace Tab's with Spaces". If you need to output a tab character use CHR$(9) instead of a literal tab character.
|
|
|
Post by davos1 on Apr 1, 2009 10:51:45 GMT -5
thanks ;D
|
|