469,314 Members | 2,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,314 developers. It's quick & easy.

what is wrong with the goto command?

Can anyone tell me what is wrong with the goto command. I noticed it is one
of those NEVER USE.

I can understand that it may lead to confusing code, but I often use it like
this:

is this wrong?????

Function x
select case z
case 1
goto one
case 2
goto two
case else
goto three
end select
exitFunction:
exit funtion
one:
.....
goto exitFunction
two:
.................
goto exitFunction
three:
................
goto exitFunction
end function
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 02/06/2004
Nov 13 '05
51 12776
Larry Linson wrote:
I am in the "Judicious Use" camp. Unfortunately, my "Judicious Use" criteria
of "so rare that it's almost never" is not universally shared. <SIGH>

(Still wondering whatever happened to "That Thar Jaysmith", and a few others
from the "olden days".)


I miss him, he was funny. Another I remember, can't remember his exact
name but once referred to as "Whacky Go" (Weiqi Gao or something like
that) and of course Robin "Have fun" Stoddard Stones, who is the only
person on this ng I've met IRL as he used lived about 3 miles from me,
I've just moved about 3 weeks ago into the sticks with the country bumpkins.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #51
GENERAL THANK YOU

Thank you all for those that just keep on replying to the what is wrong with
the goto command!

I have read/skimmed through all the messages. It seems a very interesting
topic!

Thank you once more. One day, once you guys have taught me some of finer
points in programming I hope to be able to spread the word myself.

For now, if anyone has an easy question, please do not hesitate to ask.

Happy keyboarding.

- Nicolaas
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.703 / Virus Database: 459 - Release Date: 10/06/2004
Nov 13 '05 #52

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.