Difference between revisions of "MC-Basic:CALL"
m (1 revision) |
m |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:CALL}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | Call '' | + | Call <''subprogram name''> |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 10: | Line 11: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | The CALL command transfers execution of the task | + | The CALL command transfers execution of the task to the subprogram being referenced. When the subprogram has completed, execution returns to the point in the task at which the subprogram was called. |
|TYPE= | |TYPE= | ||
Line 32: | Line 33: | ||
|EXAMPLE= | |EXAMPLE= | ||
Program<br> | Program<br> | ||
− | + | …<br> | |
− | + | Call Move_X [Do 10 incremental moves]<br> | |
− | + | …<br> | |
End Program | End Program | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]] |
− | * [[ | + | * [[MC-Basic:SUB ... END SUB|SUB ... END SUB]] |
}} | }} |
Latest revision as of 06:44, 25 April 2017
Language: | English • 中文(简体) |
---|
The CALL command transfers execution of the task to the subprogram being referenced. When the subprogram has completed, execution returns to the point in the task at which the subprogram was called.
Syntax
Call <subprogram name>
Availability
All versions
Scope
Task
Examples
Program
…
Call Move_X [Do 10 incremental moves]
…
End Program