Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
M.var=bof() or eof() or m.var WHAT???
Message
From
16/07/2001 05:46:39
 
 
To
16/07/2001 00:13:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00530035
Message ID:
00530896
Views:
20
In all seriousness though, what's wrong with :
IF BOF() OR EOF()
  THIS.TOPFILE = .T.
ENDIF
or
IF (BOF() OR EOF())
  THIS.TOPFILE = .T.
ENDIF
I think that final "OR THIS.TOPFILE" to retain the value of THIS.TOPFILE in the event of not being at top or bottom of the file leads to confusion if you're not familiar with that type of construct.

Part of my work involves programming PLCs with ladder logic, where it is common to use the equivalent structure to ensure an output stays on regardless of what happened to the inputs that set it in the first place. But I've found that when I translate that to C (or Foxpro), it does confuse people, so I tend to use the above.
Len Speed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform