I'm writing a program for my company and I'm finished with everything except the final part which includes transferring the info from my database-like program to a machine on the shop floor. I'm familiar with most of the commands for opening comm ports and settings, but i can't figure out how to declare my comm port variable, or IF i need to. I'm using some sample code as a reference to help me. It looks like this:
private sub cmdGetData_Click()
dim foo as integer, thedata as string
mscomm1.comport=1
mscomm1.settings="28800,N,8,1"
mscomm1.inputlen=0
mscomm1.portopen=true
mscomm1.output="AT" + Chr$(13)
end sub
If i used code similar to this, would i need to declare mscomm1 somewhere? and what to set it as?
thanks
private sub cmdGetData_Click()
dim foo as integer, thedata as string
mscomm1.comport=1
mscomm1.settings="28800,N,8,1"
mscomm1.inputlen=0
mscomm1.portopen=true
mscomm1.output="AT" + Chr$(13)
end sub
If i used code similar to this, would i need to declare mscomm1 somewhere? and what to set it as?
thanks