You could do it with javascript -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Darren Tracey Sent: Wednesday, July 09, 2003 11:14 AM To: CFAussie Mailing List Subject: [cfaussie] RE: Go to < line number >
Using GOTO statements is a really, really bad way to code. There isn't any kind of program structure that you can't do with Ifs, Loops and Functions, and CF has all of these. One of the basics tenants of structured programming is that GOTOs are evil and must never be used. That's 'NEVER', not just 'should be avoided'. Using GOTOs leads to what's called 'Spaghetti Code' which is almost, if not totally unmaintainable. You may think you're saving yourself some time by using a GOTO, but you're just opening yourself to a world of pain and grief when it comes time to modify your code. If you want to go back to an earlier bit of code, use a loop. If you want to go off to an separate chunk of code, use a function. Besides that, there are no set line numbers in CF anyway, not like there is in Basic. Once you get used to doing things without GOTOs, you won't look back, you'll be a better programmer, and there'll be peace in the Middle East. Regards Darren Tracey > -----Original Message----- > From: Balaji [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 9 July 2003 10:26 AM > To: CFAussie Mailing List > Subject: [cfaussie] Go to < line number > > > > > Hi, > > Is there any way of implementin the BASIC GOTO <Line Number > > statement. > > --Bim > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
