Jeeze...then don't limit your inital compare to just the lowbyte...use the whole thing...
Jeeze...then don't limit your inital compare to just the lowbyte...use the whole thing...
But I am seriously confused... I understand you have a problem comparing variables
and I gather you want to compare 2 words from a word array
for N = 0 to 23
If ML_Seconds(N) => ML_Verz(N) Then ...
Next N
this should give you the N word from your array
/me
Last edited by Jumper; - 30th May 2008 at 16:55.
Ok
Thanks Jumper,can I word arrays just increase like this:
ML_Second var Word[24]
ML_Alarm var bit [24]
ML_End_Time var Word [24]
for S = 0 to 23
ML_Alarm[S] = 0
ML_Second[S] = 0
next S
ML_End_Time[0] = 10 ' Seconds
...
...
ML_End_Time[12] = 1000 ' Seconds
...
...
ML_End_Time[23] = 10000 ' Seconds
.......
.......
Tmr0_Int: 'Timer0 = 1 Seconds
TMR0IF = 0
for N = 0 to 23
If ML_Alarm[N]= 1 then ML_Second[N] = ML_Second[N] + 1 'Start the Counter for that ML
if ML_Second[N] = > ML_End_Time[N] then ML_Alarm[N]= 0: Gosub ......
Next N
Resume
Regards Pesti
hi
I found it! the problem was somewhere else .
All is ok with my word Variables :-)
Thank you all for help!
regards Pesti
Bookmarks