Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
M.var=bof() or eof() or m.var WHAT???
Message
From
13/07/2001 10:14:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00530035
Message ID:
00530228
Views:
21
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform