× 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.



Tony,

       CorrectRec = (ContainsEM And Not EMisFirst);
>
> This works with no problem, and the indicator CorrectRec is turned on only
> if ContainsEM is on and EMisFirst isn't.  The same thing can be
> accomplished
> by more code:
>
>        If ContainsEM And Not EMisFirst;
>           CorrectRec = *on;
>        EndIf;


For the record, I wanted to point out that the above two methods do NOT
accomplish the same thing.  IMHO, the first is generally much prefered, as
it turns indicator CorrectRec either on *or* off based on the condition.
The second example using IF would need an else clause to do the same thing.
Otherwise the first time CorrectRec comes on it stays on if this is inside
an iterative loop.  It really only accomplishes the same thing when the
statements are only executed once, and CorrectRec has not been initialized
to *On elsewhere such as the D-spec.

Doug

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.