RSTYLE?

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dan Goldberg
Sent: Thursday, August 15, 2013 10:41 AM
To: RBASE-L Mailing List
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

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: 
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, 
place any 
text to search for.
================================================


Reply via email to