General information
Category:
ActiveX controls in VFP
I try to programatically change the commport used by the mscomm32.ocx control.
the code looks like this:
if formobject.mscommobject.portopen=.t.
formobject.mscommobject.portopen=.f.
endif
formobject.mscommobject.commport=newport
if formobject.mscommobject.portopen=.f.
formobject.mscommobject.portopen=.t. /here the problems apears
endif
when i reopen the port it says that the port is already open but i entered the if instruction cvhecking for the port to be closed.
if i don't try to reopen the port it says that the port is not open when i try to read from the port....
does anyone have any idea why is this happening??????
thanks in advance,
Alina Panaghiu
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only