# OUTS

Syntax:

Then: OUTS x

Sends "x" to the serial port as described by the environment variable PFOUTS.

Version Ref: 4.0

Description:

Sends a string of characters to a serial port.

Examples:

OUTS 3

Will send field 3 to the serial port.

The environment variable PFOUTS must be in the environment. It describes the port name, and attributes of the serial protocol, i.e., baud rate, word length, parity, and stop bit.

PFOUTS is set as:

PFOUTS="tty1A,9600,8,N,1" (Unix)
set PFOUTS "1,9600,8,N,1" (DOS)

Autodialer

(Assumes a modem is connected to the designated port.)

@keyP If: 'dial a modem and hang up (after timeout)
Then: 'so I one can pick up the phone and talk
Then: pb(14)=20
If: pb co "("

Then: pb="1"{mid(20,"2","3"){mid(20,"7","8")
Then: outs "ATDT"{pb{", ;H "{chr("13")

The above code strips out characters that a modem doesn't like and prepends a 1 if the call is long distance. The OUTS command dials the number on a cheap modem attached to this line and waits just long enough for you to pick up the phone and talk...by then, the modem has hung up gracefully. This allows one to pull up any filePro record that has a phone number in field 20 and instantly dial it by pressing "P".