|
-
Jan 26th, 2002, 12:33 AM
#1
Thread Starter
Lively Member
Syntax Problem plz Help!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|