Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

R-BASIC "STOP" Statement

Is the R-BASIC "STOP" statement equivalent to the "return" statement in BASIC+? I'm trying to convert a procedure from the SOURCE table into SYSPROCS and I've noticed the "STOP" keyword is being used everywhere. I'm wondering if replacing those values with "return" would do the same job.

Comments

  • Yes and no.

    The STOP keyword will end processing of the routine in all circumstances. The RETURN statement returns to the previous jump point. If there are no previous jump points (like a GOSUB statement), then RETURN will end processing of the routine.
Sign In or Register to comment.