Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
M.var=bof() or eof() or m.var WHAT???
Message
From
17/07/2001 05:00:34
 
 
To
17/07/2001 00:54:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00530035
Message ID:
00531412
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform