procwrite Statement

The procwrite statement writes a string expression variable to the calling Proc’s primary input buffer.

Syntax

procwrite var

Parameter(s)

var

Specifies the string expression variable to write to the calling Proc’s primary input buffer.

Description

In order for a Proc to interact with the information in the variable, each space in the variable defines a new parameter in the Proc’s input buffer.

Example(s)

This Proc checks the primary input buffer to see if it has been altered by the program this.program.

pq

hrun bp this.program

p

if a1 = abort x

This program writes to the controlling Proc’s primary input buffer.

buffer = start.date:" ":end.date

procwrite buffer

See Also

error() Function, procread Statement, Statements and Functions, tclread Statement, then/else Statement Blocks