Please enable JavaScript to view this site.

A-Shell Consolidated Reference

 

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

Symbol

Value

Description

INFOP_EDIT

&h0000

Normal operation (input). Field is cleared first.

INFOP_PRELOAD

&h0001

Like INFOP_EDIT (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 eighth bit set).This can be useful in conjunction with the ")" code

INFOP_DISPLAY

&h0002

Format and output contents of entry. (No input)

INFOP_SIMPLE

&h0004

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

INFOP_FORMATTED

&h0008

Like INFOP_EDIT (0) except returns entry formatted.

INFOP_PRELOAD + INFOP_FORMATTED

&h0009

Like INFOP_PRELOAD (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

&h000A

Like INFOP_DISPLAY (2), except returns entry formatted.

INFOP_FMTONLY

&h001C

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

INFOP_READONLY

&h0021

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.