01-26-2005, 08:27 PM
'GOSUB' goes to a line label, and 'CALL <subname> (param)' calls a declared subroutine/function
Got it? :bounce:
Oz~
Code:
DECLARE SUB POScar()
CLS
'Call the subroutine:
CALL POScar
GOSUB POScar 'Will return an error
GOSUB label1
END
label1:
Print "This is a gosub sub"
RETURN 'return to where the code called this label
SUB POScar
PRINT "This is POScar sub"
END SUB
Got it? :bounce:
Oz~