Code:for temp = 0 to 7 if (ML_Value[temp] <= $5A) or (ML_Value[temp] => $82) then Summe_Alarm.temp = 1 if (ML_Value[temp] > $5A) and (ML_Value[temp] < $82) then Summe_Alarm.temp = 0 next temp
Code:for temp = 0 to 7 if (ML_Value[temp] <= $5A) or (ML_Value[temp] => $82) then Summe_Alarm.temp = 1 if (ML_Value[temp] > $5A) and (ML_Value[temp] < $82) then Summe_Alarm.temp = 0 next temp
Yup but this should return a syntax or modifier error. Summe_alarm.0[temp]=x should cure the problem
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thank you for the very good solution !
Another Question :-)
Why I need Zero for : Summe_Alarm.0[Temp] and why not just
Summe_Alarm.[Temp] ?
I know that I receive a syntax but I dont understand what is the reason for use Zero !
Regard Pesti
Last edited by Pesticida; - 26th May 2007 at 21:00.
kind of fussy writing stuff i guess.
further reference:
http://www.picbasic.co.uk/forum/showthread.php?t=544
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I think your original code would work marginally faster. However, it would also consume much more code space. So that's the compromise I guess. Out of interest, (DO's & Whiles) are significantly much faster than (For Nexts) in Visual Basic.
Bookmarks