Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question Missed in Quiz
Message
From
17/03/1998 14:28:04
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00085156
Message ID:
00085159
Views:
18
>The following is a code example from the quiz.
>
>LOCAL llBoolean
>llBoolean = .T.
>IF llBoolean
> wait window 'TRUE'
> *** Some Comment ;
>ELSE
> wait window 'FALSE'
>ENDIF
>
>Why is the code executed in both the If and the Else. I was under the impression that only one would be executed. Please enlighten me.
>
>Fred Lauckner
><< Just Don't Understand Why >>

That's because of ';' at the end of comment line. Fox understands it as next line 'ELSE' is comment too.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform