# opcode

> [HTML Version](opcodeinfld.htm)

__

_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.** |


