| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Goto |
RW> The SIGNAL command in some ways acts as a Goto; however, it clears all RW> active pending control groups (DO loops, IF constructs, etc.) so it is RW> best to use it only to "bail out" in error situations. RW> Rexx has a good set of structured commands, so you can usually avoid RW> any need for a Goto. The CALL command should also not be overlooked; I RW> frequently put the following sort of thing in my Rexx programs: RW> If error_occurred Then Call Error "Error Message" RW> . . . RW> Error: Say Arg(1) RW> Exit RW> The EXIT command will exit the Rexx program even though it is "inside RW> a subroutine" in this situation. RW> RW> RW> ___ Russ Williams --- RW> --- Green Valley, AZ --- Thanks Russ I'll keep that in mind Bill --- Maximus 2.02* Origin: Hobo's Aerie..Max/RIP..Seymour,CT..OS2 WARP V3 (1:141/570) SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 141/570 1265 1130 1135 3615/50 229/2 12/2442 711/409 808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.