Quote Originally Posted by SpiritHunter View Post
how many constant can i write in a single bracket? and... is there a problem if i write like this?

LOOKUP a,[1,2,3,4,5,6,7
,8,9,10],b
Hi, SH

Will 255 for a 16F series and 256 for a 18F series be enough ??? ( LOL !!!)

...

Note this type of array takes a lot of room ( like with assembler ... 1 prog line per value + 1 ) and you might think at it when choosing your PIC ...

PbP doesn't deal so well with room for this function ... and lots of room is lost with big lookup tables !!!

Alain