OWBasic for Pocketviewer

Home INTRO Alphabetical Index

Use of more than one MEMO

APPEND "<name>"
INCLUDE "<name>"

If the size of one MEMO is not sufficient, then further MEMOs can be appended. With the statement "APPEND two" for example the MEMO with the name "two" is appended. This means that the translation of the first MEMO is terminated and the compilation continues with that memo, that begins with "!+", and the rest of the first line corresponds with the name "two". If the name of the memo to append contains spaces or other non alphanumeric characters you must quote the name:

APPEND "memo #2"

Memos to append have to be in the same category as the source.

With the statement INCLUDE another source text with procedures or subroutines is inserted. INCLUDE memos begin with "!*". The following word is interpreted as name as with APPEND. The include memo is searched at first in the program category and if not found there in the include category specified with the options topic in start menu. Thereby you can use one category for the include memos common to all programs. Each memo is included only once, even if the include statement appears more than one time in the source. This avoids errors from multiple defined procedures, if several included files insert another file.


  • PROC - Definition of user procedures
  • GOSUB - Subroutine reference
  • OPTIONS - Menu options
Home INTRO Alphabetical Index