Hi,
Can anyone tell me what is wrong with this and how to get round it?
I am using VB to control the pins of a pic over a serial link and I am just testing at the moment
by turning on and off paticular pins
Test code is something like this
DIM PinNo AS BYTE
DIM PinState AS BIT
PinState = True
LET PinNo =5
If PinState = 1 then
PORTA.PinNo = 1 ' problem
else
PORTA.PinNo = 0 ' problem
The compiler has a problem with
PORTA.PinNo = 1 or PORTA.PinNo = 0
though no problem with
PORTA.5 = 1
Any suggestions please
Regards
Frank
Bookmarks