Inhalt

Index

Working with Subroutines

If you have code where parts repeat many times, you can transfer these parts into subroutines.

Example (schematic):

!!!Main program!!!!!!
GOSUB "sub1"
GOSUB "sub2"
...
END !!!Do not forget END!!!
!!!Subroutines!!!!!!
"sub1":
...
RETURN
"sub2":
...
RETURN

For details, see GOSUB, RETURN and END.



Allplan

(C) ALLPLAN GmbH

Privacy policy