Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug vs. Functionality
Message
De
30/08/2000 10:17:36
 
 
À
30/08/2000 10:13:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00410715
Message ID:
00410717
Vues:
23
Hi Paul,

I'd like to know why you are hard-wiring file locations :-)

Seriously, When I have code that does that I comment out all lines, for example:
*!* INSERT INTO table (field1, field2, field3, field4) VALUES ;
*!*                   (cField1,cField2,cField3,cField4)
...so I guess that behavior just doesn't bother me.

>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.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform