Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>>I'm curious, Jim, why removing the sets of parentheses would make any
>>difference.
>
>Paul,
>
>I'm not sure it would, but the parens were very confusing when I tried to understand the logic of the comparisons so maybe they confused fox as well.
It's not necessary to remove parantheses. The problem in the example in the thread is that the condition is not correctly parantherised (does this word exist in English? :)). FoxPro has some bugs when verifies parantheses and in some situations it doesn't generates compile errors when it should. Also, in these cases, FoxPro's behavior is very strange sometimes, usually it ignores the whole or part of the expression.
I never found a situation when useless parantheses make any difference in the expression (of course, if the useless parantheses doesn't change the logic of the expression). I also never found a situation when a completely (and correctly) parantherised expression confused FoxPro.
Vlad
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement