× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



%eof(...) vs %eof() can be debated as much as the a=a+1 versus a+=1 
debate.
Pro:  ?documentation?
Con:  If you copy the code from one spot into another and forget the 
change the second part you can get tripped.  For example, if you copy the 
following:

Read(e) MyfileL1;
if not %eof(MyfileL1);
  Division01011Sum=Division01011Sum+1;
EndIf;

Much further down into
Read(e) MyfileL2;
if not %eof(MyfileL1);
  Division01021Sum=Division01011Sum+1;
EndIf;

You will have two errors.  Two errors less likely to be made with:
Read(e) MyfileL1;
if not %eof();
  Division01011Sum+=1;
EndIf;

Granted, there is a big difference between
x+=1;
and
x=+1;

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.