If I understood... this is not a MSComm's doubt, but a concatenate syntax doubt...
Seems to me you want the "9600" - and the others values - to be a value given by the user (in a textbox, for example...)
If this is correct, try to put these values you want in a string variable, then pass THIS new string to the settings properties...
Dim cParametros as String
cParametros = txtVeloc.Text
cParametros = cParametros & "," & txtParidade.Text
cParametros = cParametros & "," & txtNum.Text
cParametros = cParametros & "," & txtParada.Text
mscomm.settings = cParametros
Assumes that the "txtVeloc" is a textbox that contains the baud, "txtParidade" contains parity information, and so on...
If these values are already stored in others variables, you can change the textbox names to your variables names, or
mscomm.settings = YourBaudVariable & "," & YourParityVariable & "," & YourBitsVariable & "," & YourStopBitVariable
Of course you can use this second method with textboxes too, change the variable names to textboxes names in the sequence you want.
Hope this helpfully.
SidneiThank you phpbeginners for the help...now i have been able to create the module class using Mscomm reference...
now am stuck with one more thing with Mscomm..need you r help..
we can do mscomm.settings = "9600,n,8,1" ....
but if i want something of sort
mscomm.settings = "br,pr,db,sb"
where br,pr,db,sb are values provided by user...as i dont want these values hardcoded...
Thanks in advance.