Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
M.var=bof() or eof() or m.var WHAT???
Message
De
17/07/2001 05:00:34
 
 
À
17/07/2001 00:54:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00530035
Message ID:
00531412
Vues:
15
>Len,
>Looks good to me! The risk, slight though it may be, is that some other coder will come along and edit it without thinking of the consequences and convert it back to
>
THIS.TOPFILE= IF BOF() OR EOF()
>thereby destroying the intent of the code.
>So you need some comments!
>
IF BOF() OR EOF()
>  THIS.TOPFILE = .T.
>*ELSE
>*  leave THIS.TOPFILE alone!
>ENDIF
>

I agree that, it would be commented in such a way as to indicate the TOPFILE is only set if at BOF oe EOF, otherwise unchanged. But this is a risk with all code changes, whether by yourself or someone else.
Len Speed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform