GoTo's that jump out of while/endwh or switch/endsw statements are definite no-nos. I also do not think pulling all the code from an eep into a while/endwh is very good practice because "all" of the code from the eep has to be pulled into the while/endwh...
----- Original Message ----- From: "Dan Goldberg" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Thursday, August 15, 2013 11:40 AM Subject: [RBASE-L] - Re: using goto statement in while loops : Thanks everyone for the info. I do not use goto statements that : often(reminds me of the old basic days). I read that goto statements are : slower and most of the time there is another way to code it. : : I just had one eep that would die at a goto statement. It is nested inside a : while loop. The label is also inside the while loop. : : I changed the code to not use it and now it dies at another goto : statement(which it never did before). Maybe it does not like too many goto : statements in one eep? : : Dan Goldberg : : -----Original Message----- : From: Dennis McGrath : Sent: Wednesday, August 14, 2013 6:59 PM : To: RBASE-L Mailing List : Subject: [RBASE-L] - Re: using goto statement in while loops : : The only two structures I avoid goto in are WHILE and SWITCH : : NEVER use goto to exit a WHILE or SWITCH : : ON THE OTHER HAND : If you could not say: : if something = true then : goto lblname : endif : You would be in a terrible state trying to branch anywhere! : : : : : -----Original Message----- : From: [email protected] [mailto:[email protected]] On Behalf Of Dan Goldberg : Sent: Wednesday, August 14, 2013 5:46 PM : To: RBASE-L Mailing List : Subject: [RBASE-L] - Re: using goto statement in while loops : : Thanks for the info. How about if-then statements? Does that apply as well? : : if something = true then : goto lblname : endif : : label lblname : : Dan : : -----Original Message----- : From: Mike Byerley : Sent: Wednesday, August 14, 2013 3:35 PM : To: RBASE-L Mailing List : Subject: [RBASE-L] - Re: using goto statement in while loops : : As long as the GoTo LabelName is inside the While Endwh : : : ----- Original Message ----- : From: "Dan Goldberg" <[email protected]> : To: "RBASE-L Mailing List" <[email protected]> : Sent: Wednesday, August 14, 2013 6:18 PM : Subject: [RBASE-L] - using goto statement in while loops : : : Is it okay to use goto statements inside of while loops? : : The reason I am asking is I am having one inside a form eep which kills the : eep when it runs that line. : : : Dan Goldberg : :

