Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mscomm32 problems
Message
De
26/09/2001 03:42:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Mscomm32 problems
Divers
Thread ID:
00560849
Message ID:
00560849
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform