Re: Testing a sequence
Why not make each flag as a bit in an integer, eg:
integer flag
flag =..... --etc
.....
.....
-- Test if any flags are "high...real quick"
if flag then -- yes! a flag is set
else -- no
sorry. all flags are reset (ie zero)
end if
-----Original Message-----
From: Andrew Sharp <asharp at CHILLI.NET.AU>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Thursday, January 07, 1999 10:48 AM
Subject: Testing a sequence
>I'm writing an add on to a program which needs a 'virtual' set of flags
>which I'm setting up as elements of a length 12 sequence (VF).
>The setting of the flags is not a time worry, but when I want to find out
>if any of them have gone high I need to do so real quick.
>What I'd like to know is do I have to test every element with a for-next
>type loop or can I check if any of the elements has gone 1 by simply
>checking - If vf.
>Andrew (Razor) Sharp
>
|
Not Categorized, Please Help
|
|