Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
M.var=bof() or eof() or m.var WHAT???
Message
De
13/07/2001 10:14:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00530035
Message ID:
00530228
Vues:
20
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform