Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug vs. Functionality
Message
 
To
30/08/2000 10:13:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00410715
Message ID:
00410723
Views:
14
I've been caught by that one before. There are pros & cons with either commenting method, so I have no preference; but I do wish that the code coloring matched - it's very misleading.
Mark

>Hello to all:
>I discovered something today that I'd like to share with the rest of you, and get your input on how YOU feel it should be handled.
>
>I had a line similar to the following:
>
>do c:\windows\desktop\myprogram.prg with para1, para2, para3, ;
> para4, para5, para6
>
>I moved the program from my local drive to the network, but I wanted to save the previous code, in case I needed to switch back, so I just commented it out, so my code looked like this:
>
>*do c:\windows\desktop\myprogram.prg with para1, para2, para3, ;
>do l:\programs\myprogram.prg with para1, para2, para3, ;
> para4, para5, para6
>
>When FoxPro runs this code, it looks at that first commented line, sees the semi-colon on the end, and then decides that the following line is a continuation of that comment! Although the following lines do not show up as my customized comment coloring in the code, they are parsed as such when the program is written in Binary.
>
>My take on this is that ANYTHING in a commented line should be ignored by a parser/compiler. It is clear that in this case, some of my code was affected by a character contained in a commented line. How do all of YOU feel? Should this semi-colon be treated like all other semi's and be interpreted as "continue this line on the next line.", or do you also feel it should be seen as just any ol' character in a commented out row, and thusly does nothing to the program.
>
>Hope to hear back from some of you.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Reply
Map
View

Click here to load this message in the networking platform