General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only