1. go back to main program
- Posted by Alan sanderson <themadhatter389 at hotmai?.?o.uk> Jan 29, 2008
- 603 views
I want something like a gosub in basic.havn't seen anything
2. Re: go back to main program
- Posted by Mike777 <anon4321 at gmail.??m> Jan 29, 2008
- 584 views
Alan sanderson wrote: > > I want something like a gosub in basic.havn't seen anything I think what you are looking for is a call to a procedure. Just about all of the demos have one or more procedures.
3. Re: go back to main program
- Posted by CChris <christian.cuvier at agricul?ure.gouv.f?> Jan 29, 2008
- 605 views
Alan sanderson wrote: > > I want something like a gosub in basic.havn't seen anything Euphoria has procedures and fnctions. Use the return statement to go back to main program from either: * if routine is a procedure, then return works, and can be omitted ("end procedure" causes a return to be executed). * if routine is a function, return must be followed by a value/expression, which becomes the result of the function call. There is no special variable to hold the result of a function. What you cannot do is targetting any place in your program and gosub-ing there. You have to declare that chunk of code as a procedure. It is not in the main code stream, so that you cannot enter it through the top; you can only call it, perhaps indirectly. CChris