Ah, got it - nice technique, the kind of comparison changes, as you describe - thanks!

Vern

On 7/15/2011 12:41 PM, Barbara Morris wrote:
On 2011/7/15 11:52 AM, Vern Hamberg wrote:
You say this works against any kind of array - I wondered about that -
an array of packed fields does not allow a test against *blanks, right?
So it seems this is always restricted to character arrays. Of course, it
could be used to test for all *ZEROS in an array. (How DO we spell that
word?)

Right, I meant that the technique in general works against any kind of
array, because it is working with the true data type of the array rather
than the bytes.

So this would find if there is any element in the timestamps array that
is greater than the due date.

chk = timestamps> dueDate;

This would find out if any element in the first N elements of the lines
array contains a '?'.

chk = %scan('?' : %subarr(lines : 1 : N));



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