DEFPROC
This page was last modified 02:43, 14 August 2021 by Mars2000you.

Contents

Effect

Defines the beginning of a procedure. This instruction can't be used in direct mode, it needs to be part of your program.

A procedure is a program inside your main program. It can replace routines called by GOSUB or GOTO. Using procedures helps to get a more clear and structured code.

Syntax

DEFPROC"<ProcedureName>"

Parameter

<ProcedureName> is the name of the procedure, defined in your program by lines whose first line begins with DEFPROC and last line with ENDPROC.

It must be a name without space to avoid problems with related instructions such as SAVEPROC. It is recommended to use only letters, numbers, _ (underscore), # and $ to keep some clarity. Upper and lower case letters are equivalent. The maximum length is 200 characters.

Example

100 DEFPROC"introscreen"

Related to

DELETEPROC, ENDPROC, GOSUB, GOTO, LISTPROC, LLISTPROC, MERGEPROC, PROC, SAVEPROC

Compatibility

Delta BASIC