Could this work?Code:IF (a*a*a*a*a*a*a*a*a*a*a) = (a + b+ c +d +e + f +g +h +i +j +k +l) THEN DO
_____________-
Could this work?Code:IF (a*a*a*a*a*a*a*a*a*a*a) = (a + b+ c +d +e + f +g +h +i +j +k +l) THEN DO
_____________-
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
I initially thouhgt doing the addition thing... but it wouldn't work...
(a*11)=(b+c+d+e+f+g+h+i+j+k+l)
looks fine untill you consider the equation would still be true if one of the values was less than a, whilst another of the values was greater than a by the same amount.
Another way ...Code:Idx VAR BYTE Vars VAR BYTE[12] a VAR Vars[0] b VAR Vars[1] c VAR Vars[2] d VAR Vars[3] e VAR Vars[4] f VAR Vars[5] g VAR Vars[6] h VAR Vars[7] i VAR Vars[8] j VAR Vars[9] k VAR Vars[10] l VAR Vars[11] m VAR BYTE For Idx = 1 to 11 IF a != Vars[Idx] THEN m = 0 : GOTO VarTestDone NEXT Idx m = 1 VarTestDone:
DT
Hi,TaznTex
As it looks close to logics ... Could you tell what kind of variables are "a" to "l" ???
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks