Thanks again Steve, I've been working on stuffing my bits into a byte so I can use your snippetts.
I'm still leaning toward the case select, probably cause I don't follow the other very well.
Question, in the case select, is the case # the actual binary value of the byte?
Here's how I stuffed my bits..
myinput.0 = override
myinput.1 = r1sched
myinput.2 = r1ctrl
myinput.3 = r1status
myinput.4 = dayontime
myinput.5 = dayofftime
myinput.6 = nightontime
myinput.7 = nightofftime
So if r1status was high and dayofftime was high my byte value would be 40..
select case myinput
Case 0 ' b0=0 b1=0 b2=0 b3=0 b4=0 b5=0 b6=0 b7=0
' Do your stuff here for that condition
Case 40 ' b0=0 b1=0 b2=0 b3=1 b4=0 b5=1 b6=0 b7=0
' Do your stuff here for that condition
end select
or am I messed up??
Bookmarks