MC-Basic:CALL

From SoftMC-Wiki
Revision as of 16:00, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= Call ''<subprogram name>'' |AVAILABILITY= All versions |DESCRIPTION= The CALL command transfers execution of the task from the point at which…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The CALL command transfers execution of the task from the point at which the CALL appears, to the subprogram being referenced. When the subprogram has completed, execution returns to the point in the task from which the subprogram had been called.

Syntax

Call <subprogram name>

Availability

All versions

Scope

Task

Examples

Program
       …
       Call Move_X                                       ‘Do 10 incremental moves
       …

End Program

See Also