LOOKUP question
basicstampede
Posts: 214
1)· LOOKUP keyIn, [noparse][[/noparse]"0123456789ABCD*#"], char
vs.
2)· LOOKUP keyIn, [noparse][[/noparse]"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "*", "#"], char
The 2 statements above seem to behave same.
Are they equivalent?
What is it about the 1st statement that allows me to just string them without having to break using comma, yet still get same result as if I separated them by commas (as in 2nd statement)?
Thanks.
vs.
2)· LOOKUP keyIn, [noparse][[/noparse]"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "*", "#"], char
The 2 statements above seem to behave same.
Are they equivalent?
What is it about the 1st statement that allows me to just string them without having to break using comma, yet still get same result as if I separated them by commas (as in 2nd statement)?
Thanks.
Comments
get an idea of table lookup, "0123456789ABCD*#" then seperated each character "0" "1" ... as you do
both of them still ASCII character, nothing made changed
Why same? on BASIC Stamp data size is organized as bit / nibble / byte and word. others is just decoration formatted then string above is a set of ASCII code and no string terminate code as high-level PC progamming lang.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office