Keyword Abbreviation

From Br Wiki
Jump to: navigation, search

Primary and secondary keywords can be abbreviated on input, thereby increasing programmer productivity. Primary keywords are the names of statements and commands. Secondary keywords are other keywords used in statements (they are always capitalized in syntax diagrams, meaning they must be typed in exactly as is or with an acceptable abbreviation). Lists of the shortest acceptable abbreviations for each of these keywords are included in this APPENDIX.

An abbreviation, which is longer than what is listed is also, accepted. DELETE could be entered as DEL, DELE, or DELET, for instance.

For primary keywords, each abbreviation is unique; the rule for determining the abbreviation is explained below. Secondary keyword abbreviations are not unique; instead, Business Rules uses the context and placement of the keyword to determine its meaning.

Command Abbreviations

A list of the shortest acceptable abbreviations for command names follows. The full keyword appears with its shortest acceptable abbreviation, if any, directly afterwards.

Caution

Business Rules automatically expands abbreviated keywords only when the abbreviations appear in program statements (not commands or procedures) and only when they are not part of a literal expression. Some future additions to Business Rules may make a few abbreviations invalid, it is strongly recommended that you spell out all keywords which Business Rules won't expand for you when they are to remain a permanent part of your application. This includes all keywords which appear in procedure files, BRConfig.sys file or in the literal expressions of EXECUTE statements.


Alert (AL)

Auto (AU)

Break

ChDir (CH or CD)

Clear (CL)

Config (CON)

Copy (COP)

Date (DA)

Del (DE)

Dir (DI)

Display

Drop (DR)

Edit (ED)

Free (FR)

Go

Go End

Index

List (LIS)

Load (LO)

Merge (ME)

MkDir (MK)

Proc

ProcErr

Protect (PROT)

Rename (REN)

Renum (RENU)

Replace (REP)

RmDir (RM)

Run (RU)

Save (SA)

Skip (SK)

Sort

Status (ST)

SubProc (SU)

System (SY)

Time (TI)

Type (TY)

Verify (V)

Statement Abbreviations

A list of the shortest acceptable abbreviations for statement names follows. The full keyword is followed by its shortest acceptable abbreviation (if any) in parentheses.

There are two special situations where it will seem as if the same abbreviation applies to different statements: with the five OPEN statements, and with the two READ statements. Although this manual describes the OPEN communications, OPEN display, OPEN external, OPEN internal and OPEN display statements separately, they are actually all variations of the same statement. Business Rules recognizes the OPE abbreviation for each. The same is true for the READ file and READ data statements.

CHAIN (CH)

CLOSE (CL)

CONTINUE (CO)

DATA (DA)

DEF

DELETE (DEL)

DIM (DI)

END (EN)

END IF (EN IF)

EXECUTE (EXE)

Exit (EXI)

FNEND (FN)

FOR

FORM

GOSUB(GOS)

GOTO (GOT)

IF

INPUT (IN)

INPUT FIELDS (IN F)

INPUT SELECT (IN S)

LET (LE)

LINPUT (LI)

MAT (M)

NEXT (N)

ON error

ON GOSUB (ON GOS)

ON GOTO (ON GOT)

OPEN communications (OPE)

OPEN display (OPE)

OPEN external (OPE)

OPEN internal (OPE)

OPEN window (OPE)

OPTION (OPT)

PAUSE (PAU)

PRINT (PR)

PRINT BORDER (PR B)

PRINT FIELDS (PR F)

PRINT USING (PR U)

RANDOMIZE (RA)

READ (REA)

REM

REREAD (RER)

RESTORE (RES)

RETRY (RETR)

RETURN (RETU)

REWRITE (REW)

RINPUT (RI)

RINPUT FIELDS (RI F)

RINPUT SELECT (RI S)

STOP (ST)

TRACE (T)

USE (U)

WRITE (WR)