many thanks for the info,

i just figured out that using a simple sub to scan the port works fine...
and i use port B.0 not 4...7

rgds
tb