Hi All,

I've recently made an active x control that has this function in it:

Public Function SetModemSettings(Baud As Integer, Parity As String, DataBit As Integer, StopBit As Integer)

MSComm1.Settings = (Baud) & "," & (Parity) & "," & (DataBit) & "," & (StopBit)
'Mscomm1.PortOpen = True

End Function

Ok, now the problem lies when I try to call it in my VB project...

Mod1.SetModemSettings(cmbbaud.Text, cmbparity.Text, cmbdatabit.Text, cmbstopbit.Text)

It thinks that this code is wrong and comes back with compile error Expected: =

Any help would be greatly appreciated!

Thanks.

Best Regards,

Smithy