Hello all,
Im trying to use the MSComm object to talk through a serial port, but I can't seem to get the thing working right. This is how I declare and use it:
Private PORT As MSComm
PORT.InBufferCount = 0
PORT.CommPort = 1
PORT.Settings = "9600,N,8,1"
PORT.PortOpen = True
This should work, but I keep getting error '91', which says the object variable or with block variable is not set. Can anyone tell me why this is...?
Do I need a statment saying "Set PORT = NEW Something" or something like that? Please let me know...
Thanks,
Damann
Im trying to use the MSComm object to talk through a serial port, but I can't seem to get the thing working right. This is how I declare and use it:
Private PORT As MSComm
PORT.InBufferCount = 0
PORT.CommPort = 1
PORT.Settings = "9600,N,8,1"
PORT.PortOpen = True
This should work, but I keep getting error '91', which says the object variable or with block variable is not set. Can anyone tell me why this is...?
Do I need a statment saying "Set PORT = NEW Something" or something like that? Please let me know...
Thanks,
Damann