Is there anyway, using PicBasic, to generate a variable (ie for to next loop) then activate an i/o pin corresponding to the variable value..( eg if x=3 then I want to send portb.3 high...what I want to do is send portb.x high however this doesn't work. If there is a way I'd be really grateful to know it

Cheers
