In my code i check whether com port is open and if it's not then i open it.
If mscomm1.portopen = true then '1
mscomm1.portopen = false '2
end if '3
mscomm1.portopen = true '4
my code goes like this
but sometimes in line1, mscomm1.portopen returns false so if consition does not run (line2). But in line 4 i get an error like Port Already Open. But even in this error if i debug i still get mscomm1.portopen property false. So i couldn't detect if it's open or not.
What do you advice me to do?
if u wnat i may give you more detail. Thanks
If mscomm1.portopen = true then '1
mscomm1.portopen = false '2
end if '3
mscomm1.portopen = true '4
my code goes like this
but sometimes in line1, mscomm1.portopen returns false so if consition does not run (line2). But in line 4 i get an error like Port Already Open. But even in this error if i debug i still get mscomm1.portopen property false. So i couldn't detect if it's open or not.
What do you advice me to do?
if u wnat i may give you more detail. Thanks