HomeStartingEnvironmentDBMSVisualPQLProceduresSQLFormsHost/APIIndex
Forms homecontents start chapter top of pagebottom of pagenext page index Running FORMS

Running SirForms

When SirForms is run, a number of parameters can be specified. At a minimum, the name of the input file containing the form must be specified using either CMP= for source or FRM= for compiled. If this is omitted, a CMP source input is prompted for.

Separate parameters with slashes ( / ) or spaces.

Execution parameters

The following parameters can be specified:

COMPILE | CMP = filename with source text
EDIT = YES | NO
ERRORFILE = filename for any compilation errors
EXPERT
FORM | FRM = filename of compiled form
GRPNAM = groupname
GRPPAS = password
LISTING = filename
NOEXECUTE
NUMSCR = n
PREFIX = database path
PRINT = filename
PS = n
PW = database password
RS = read password
TMPLTSCR = filename
USRNAM = username
USRPAS = password
WD = n
WS = write password

CENY=yyyy

COMPILE | CMP
EDIT
ERRORFILE
EXPERT

FORM | FRM
GRPNAM

GRPPAS
LISTING | LIST | OUT

NOEXECUTE
NUMSCR

PRINT
PREFIX
PW
RS
TMPLTSCR
USRNAM

USRPAS
WS

Examples of running SirForms

In these examples, the command SirForms and the parameter separator is a blank. The following are typical examples of executing SirForms.

SirForms CMP=MYFORM.cmp LISTING=OUTPUT.LST
This compiles a form from MYFORM.cmp, produces a listing on OUTPUT.LST and executes the compiled form if there are no errors.

SirForms CMP=MYFORM.cmp FRM=MYFORM.frm NOEXECUTE
This compiles a form, stores a compiled version of the form on MYFORM.frm and does not execute the form.

SirFormsFRM=MYFORM.frm
This executes a previously compiled and saved form from MYFORM.frm.

homecontents start chapter top of pagebottom of pagenext page index

Key Mapping

In SirForms, various functions are performed with special keys. The physical keys that accomplish any given task can be altered by the user through keymapping.

When you start SirForms, it checks to see if a keymap file is present. If the appropriate file is not found, the system immediately prompts you to supply a minimum set of keys. These are Enter, Backspace, Escape and the four arrow keys (up, down, left and right). At each prompt, simply press the appropriate key on your keyboard. It also asks for one special key called Key Help. Press the appropriate key and type in the name of this physical key, for example "Shift-F1". After this initial mapping, pressing the keyhelp key displays a list of keys and allows you to alter the mappings.

The keymap file supplied with the software uses "Shift-F1" as the keyhelp key and this can be modified to reflect any new key mapping rather than starting from scratch.

Meta Key

Most systems use a combination of certain special keys such as Ctrl, Shift and Alt which, when pressed at the same time as standard keys, extend the number of keys available. Some systems use the concept of a MetaKey which performs a similar function but is pressed before the standard key. The most common example of this is the Gold key on DEC systems. If you use this style of key, define it as part of the initial keymapping. If you do not use this style of key (most users) do not define a meta key.

Changing Key Mapping

Once you have a keymap file, press Key Help to display a list of keymappings. Use the menus on the displayed list to alter existing mappings or add new ones.

To define a new mapping, position to the function with the arrow keys. Press M to associate a new key with that function. Then, responding to the prompts, press the key you want to allocate to the function and then enter the name of the physical key, for example "Ctrl-M". You can only allocate special keys to functions, you cannot map standard character keys.

One physical key can only be associated with one function but a function can have more than one physical key associated with it. To remove an existing mapping, position to the function with the arrow keys and press U. This removes the first physical key mapped to the function. Repeat the process if there are further keys to be de-allocated.

If you exit after changes without first saving the keymap file, you are prompted to save or abandon your changes.

If you wish to have a special keymapping, copy the appropriate keymap file from the home directory to your working directory and then modify it as above.

homecontents start chapter top of pagebottom of pagenext page index