Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Quiz in KB...
Message
From
07/07/1999 18:11:05
 
 
To
07/07/1999 18:04:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00238575
Message ID:
00238580
Views:
26
>Yes. It's an example from the Hacker's Guide to VFP 3.0.
>Apparently in VFP 3.0 and before you were allowed to place comments on the same line as your if statement. The way that FP dealt with that is as soon as it hit a syntax error it would just make the rest of the line a comment.
>
>In this example the missing "." in the "AND" is what is causing the problem. It evaluates only the first part of the if and the rest of the if it just acts as if its a comment.
>
>HTH
>
>Dan

Thats not too backwards compatible, but I'd better see it the new way than the old way. That would suck to not know that little fact and try to debug.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform