Jumping To A Sub Routines

ycherrs

New Member
Hi guys need your help.. I must say im quite new with progress and still exploring.. Can anybody show me how to jump into a sub routine using GO TO STATEMENT. Thank you very much for your help.:blush:
 
Hi,

First of all, forgive the missing spaces in this reply, this forum appears to have some issues with FireFox browsers....

As far as I know, Progress does not have a GOTO statement (and ifit does have one, it should be removed yesterday). Traditionally codeis executed top down and, although it might seem a little weird atfirst, if you create your code in the right way, you should not haveany need for any GOTO statement. Instead of using GOTO, you can use anycombination of IF-THEN-ELSE, CASE, internal procedures and functions.The only exception to the above is that there is a way to jump to thenext iteration of a loop using the NEXT statement, or jump out of aloop using the LEAVE statement.

If you are really after using sub routines, try looking at internalprocedures and functions in your Progress documentation OR, if you havean example of what it is you are trying to do, write it in a post onhere and someone can give you some more appropriate hints and tips orexamples of code you can use to experiment with :)

If you are really new to Progress, also try having a look at the stacksof (electronic) documentation that should have come with your Progresslicense, you will be amazed at what you can get out of there...
 
Pants

I completly agree, PSC - Progress DOES NOT have a GOTO statement. If it did, it should be removed immediately!!! Progress is an event driven programming language. The accepted way would be to instead of GOTO simply execute a procedure - internal/external, executre a routine to handle your requirements.
Tut Tut Tut / Progress is 4GL - Move forward instead of going backwards with GOTO.
 
Back
Top