Call: Difference between revisions
Jump to navigation
Jump to search
Created page with "CALL ''procedurename[(''argList'')] '''Description''' CALL is an explicit method of executing a FUNCTION procedure or a SUB procedure. The required component, procedurename..." |
No edit summary |
||
Line 4: | Line 4: | ||
CALL is an explicit method of executing a FUNCTION procedure or a SUB procedure. The required component, procedurename, is any procedure name. The optional component, argList, is a comma-delimited list of variables to pass to the called procedure. The CALL keyword is optional, procedures can be executed without the keyword, as | CALL is an explicit method of executing a FUNCTION procedure or a SUB procedure. The required component, ''procedurename'', is any procedure name. The optional component, ''argList'', is a comma-delimited list of variables to pass to the called procedure. The CALL keyword is optional, procedures can be executed without the keyword, as | ||
name[(argList)] | name[(''argList'')] | ||
'''Example''' | '''Example''' |
Revision as of 03:51, 29 June 2012
CALL procedurename[(argList)]
Description
CALL is an explicit method of executing a FUNCTION procedure or a SUB procedure. The required component, procedurename, is any procedure name. The optional component, argList, is a comma-delimited list of variables to pass to the called procedure. The CALL keyword is optional, procedures can be executed without the keyword, as
name[(argList)]
Example
REM CALL Example 'CALL explicitly executes a procedure CALL Welcome CALL Message("NS Basic/App Studio is excellent.") Wave FUNCTION Welcome PRINT "Hello World!" END FUNCTION FUNCTION Message(Text) PRINT "Message: " & Text END FUNCTION SUB Wave PRINT "Goodbye! " END SUB
Output
Hello World! Message: NS Basic/App Studio is excellent. Goodbye!