Mscomm setting non parametrable.
Re-bonjour,
J'utilise le composant Mscomm avec ce code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| a = LitDansFichierIni("poCom", "VitConx", App.Path + "\config.ini")
b = LitDansFichierIni("poCom", "ContPar", App.Path + "\config.ini")
C = LitDansFichierIni("poCom", "NbrxByte", App.Path + "\config.ini")
d = LitDansFichierIni("poCom", "NbrxBs", App.Path + "\config.ini")
t = a & "," & b & "," & c & "," & d
With MSComm1
.CommPort = LitDansFichierIni("poCom", "N°Port", App.Path + "\config.ini")
.Handshaking = 2
.RThreshold = 1
.RTSEnable = True
.Settings = t
.SThreshold = 1
.PortOpen = True
End With |
Mais il mais impossible de changer une seule valeur de settings sinon j'ai droit a l'erreur execution 380 valeur de propriete non valide.
effectivement dans la propriete de Mscomm1 dans settings j'ai "9600,n,8,1".
Comment faire pour changer ces valeurs?
Merci