I'm trying to use MSComm Control to output text from a command parameter to an LED screen. I found some sample code from MSDN and it would not even compile. It highlights 'Dim Comm3 As CECOMMCtl.Comm' and says "User defined type not defined." I more or less copied and pasted from MSDN. Any ideas?
Option Explicit
Dim Message As String
Dim Number_lines As String
Dim Direction As String
Dim Color As String
Sub Main()
Dim Comm3 As CECOMMCtl.Comm
Set Comm3 = CreateObjectWithEvents(CECOMM.Comm, COM3)
End Sub
Public Sub Comm3_OnComm()
Message = Environ("MESSAGE")
Comm3.Output = Message
End Sub
Option Explicit
Dim Message As String
Dim Number_lines As String
Dim Direction As String
Dim Color As String
Sub Main()
Dim Comm3 As CECOMMCtl.Comm
Set Comm3 = CreateObjectWithEvents(CECOMM.Comm, COM3)
End Sub
Public Sub Comm3_OnComm()
Message = Environ("MESSAGE")
Comm3.Output = Message
End Sub