Introduction to Paragraphs - Video

Paragraph is a simple command found in the Master Dictionary or VOC that combine a series of TCL command together. Paragraphs provide a simple macro language that provides you the ability to add loops, input prompts, as well as simple branching.

Structure:

You create paragraphs in the Master Dictionary or VOC of the account. The basic format of a paragraph is:

001 PARAGRAPH
002 {tcl command}

You may also find a "PA" or "T" in attribute 001.

Let's look at a simple paragraph:

CUST.PA.EXAMPLE

001 PARAGRAPH
002 * List basic customer information
003 IF <<C2>> = "" THEN GO DEFAULT
004 LIST CUST <<C2>> FIRST.NAME LAST.NAME
005 GO DONE
006 DEFAULT: LIST CUST FIRST.NAME LAST.NAME
007 DONE: * Done with paragraph

Let's look at the layout a bit closer:

Line 002 and 007 include comments. Much like BASIC programs, you can include comments in your paragraphs using an '*' Anything after the '*' will be ignored by the paragraph.

Line 003 has 3 things about it that are important: Branching, TCL Parameters, and GOTO Labels.

Login to Read Complete Article.

menu
menu