>First foxpro evaluates the logical expression
BOF() OR EOF() OR THIS.TOPFILE and than assigns result to THIS.TOPFILE.
This fact makes code like the following possible:
IsEqual = a = b
Which is equivalent to:
if a = b
IsEqual = .T.
else
IsEqual = .F.
endif
I have often used the expression of the above type, sometimes with parentheses:
IsEqual = (a = b)
The parentheses help clarify what is evaluated first; but after a while, I thought this should be quite obvious, and often omitted the parentheses.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)