Please enable JavaScript to view this site.

A-Shell Reference

Updated November 2013

opcode, formerly DEFLT, specifies operational options such as pre-load, output vs. input, or format conversion:

Symbol

Value

Description

INFOP_EDIT

0

Normal operation (input). Field is cleared first.

INFOP_PRELOAD

1

Like 0 except contents of entry are preloaded into the field and displayed before input. Note that for codes d, Y, and N (Y/N), entry overrides the standard default only when entry is non-null. Also note that leading fill characters in R and Z fields, and trailing blanks in all field types will be stripped to simplify editing. You can, however, force it to keep one or more trailing blanks by supplying them as chr$(160) (which is a blank with the 8th bit set).This can be useful in conjunction with the ")" code

INFOP_DISPLAY

2

Format and output contents of entry. (No input)

INFOP_SIMPLE

4

Speed and cursor motion optimized version of opcode 2; assumes screen already clear. Relevant only for text mode.

INFOP_FORMATTED

8

Like opcode 0 except returns entry formatted.

INFOP_PRELOAD + INFOP_FORMATTED

9

Like opcode 1 except returns entry formatted. Note that you must de-format the field (somehow) between successive opcode=9 calls to the same field.

INFOP_PRELOAD + INFOP_DISPLAY

10

Like opcode 2, except returns entry formatted.

INFOP_FMTONLY

28

Format conversion only. Takes entry unformatted and returns it formatted.

INFOP_READONLY

33

Read-only input mode. Field loaded with entry, but cannot be changed. EXITCODEs however are still possible. This might be useful in a case were you want to allow a user to review previous entry fields, but only change them by first hitting some kind of special exitcode and then entering a password. This has the same effect as type |r (vertical bar, r).