The question should really have been put to
rpg-L@xxxxxxxxxxxxx

If the value of "pos" at the first execution of the "dow"
comparison, you will get an array index error. For a group
of "and"ed clauses, the first comparison is checked first.

If "pos" is at zero when this loop begins, it will not
execute even once.

Maybe you really want:

pos = 1
dow pos < 52 and ( InputMAD( pos ) <>  ';' )
eval   pos = pos + 1
enddo

or

pos = 0
dou pos = 52 or ( InputMAD( pos ) =  ';' )
eval   pos = pos + 1
enddo

both of which will finish the same.

- Alan

If that doesn't get it, pos your question over there:

rpg-L@xxxxxxxxxxxx


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