SEND

Format

SEND (data1,number2)

Description

This statement is used to send one character to a serial port. The port should initialized with OPENCOM prior to using this statement. Data1 may be any valid data type (integer or string, variable or constant) and it should contain the character to be sent to the port. Number2 identifies which COM port to send to (0=COM1, 1=COM2).

Example

OPENCOM(2,0,0,3,0) SEND ("X",0)
The above code will open COM1 at 300baud, 1 stop bit, 8bit character size, with no parity. It will then send the character "X" to COM1.

See Also

  • RECEIVE
  • COMSTAT
  • OPENCOM