 |
|
|
Topic: Run-Time Error 91
|
By: loufrank63 | Posted on: Aug 10 2012 at 04:18:05 PM | I have placed the control on my form, named SComm5. I then have the following code and have called it when the Form Loads. Can anyone help me?
Private Sub SComm5_OnComm()
Dim SComm1 As SComm32.SComm
With SComm1
'Use COM Port 3
.CommPort = 3
'Sets and returns the hardware handshaking protocol. Data is transferred from the hardware port to the receive buffer
.Handshaking = comXOnXoff
'19200 baud, EVEN parity, 7 databits, and 2 stop bits.
.Settings = "19200,E,7,2"
'Sets and returns the number of characters the Input property reads from the receive buffer.
.InputLen = 30000
'Sets the type of data retrieved by the Input property.
.InputMode = comInputModeText
End With
End Sub | |
By: Support | Posted on: Aug 10 2012 at 06:01:41 PM | You don't need to use Dim like that.
Just drag an instance of the OCX onto your form.
Take a look at the fully functional sample projects that were installed with our download. | |
By: loufrank63 | Posted on: Aug 10 2012 at 07:33:49 PM | I want to thank you so very much for the point in the right direction. I removed the Dim statement and just called the object placed on the form and now it is running with no errors. I just have to now learn how to send a file. I do want to thank you again for your help. | |
|