Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question Missed in Quiz
Message
De
17/03/1998 14:35:32
 
 
À
17/03/1998 14:28:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00085156
Message ID:
00085160
Vues:
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.


Tricky! I didn't even think to look at the commented line. I guess when debugging, you cannot ignore a line or statement just because it has been commented out.

Thanx.


Fred Lauckner
<< I wish I could blame a high resolution for missing it.>>
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform