Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mscomm32 problems
Message
From
26/09/2001 03:42:45
Alina Panaghiu
Smart Computers
Arad, Romania
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Mscomm32 problems
Miscellaneous
Thread ID:
00560849
Message ID:
00560849
Views:
48
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
Map
View

Click here to load this message in the networking platform