Information générale
Catégorie:
Contrôles ActiveX en 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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement