Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mscomm32.ocx - Class not licenced for use
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00894991
Message ID:
00895399
Vues:
20
Hi Boris
Thanks for the reply, just a char, however I now use this code which is native to VFP and very simple:

mPort = "COM2"
*// Open the port 11 is write only unbuffered
nHandle = Fopen(mPort,11)
IF nHandle < 0
=MessageBox(mPort+" Is either unavailable or invalid. Could not open the port ",48,"")
ENDIF

nBytes = Fwrite(nHandle,"X")
IF nBytes < 1
=MessageBox("The character did not write to the port successfully ",48,"")
ELSE
WAIT WINDOW NOWAIT "The X character was fired at "+mPort
ENDIF

=Fclose(nHandle)

Cheers
John
To move a mountain start with the smallest stone
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform