10-29-2003, 07:39 AM
I dont get it, lol.
S VERDAD?!
Continue by hitting a certain key
|
10-29-2003, 09:13 AM
Me neither.
*considers imprisoning Valerie for this comment*
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
10-29-2003, 09:27 AM
C'mon people.
GOTO = instruction HELL = destination Programmers think GOTO is worse than HELL.
10-29-2003, 11:51 AM
Quote:You should use a library. Unless you enjoy POUNDING on your keyboard. :lol: And sorry to kill this thread with the all-encompassing answer, but: Code: numofkeystocheck% = 4 ' Set to the number of keys in the array you wish to check for
10-29-2003, 02:24 PM
He used EXIT DO, see?
10-29-2003, 08:01 PM
Exit do works fine, but I've been programming for ages now, and I have never encounted problems with GOTO. What is wrong with it?
eminiscing about trapezoids in conjunction with stratospherical parabolas:
No questions asked. www.stickskate.com
10-30-2003, 01:06 AM
A modification of Oracle's code
Code: 'Choices are Esc, Enter, Space, and A
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)
For God so loved the world, that He gave His only begotten Son, that whoever believes in Him should not perish, but have eternal life.(John 3:16)
10-30-2003, 01:06 AM
In previous projects they have hammered me for using the goto command. And, in some sense for people it is bad because they don't ever compact their modules. When you get to humungus programs, that GOTO space gets removed or you can't expand anymore. But, I found it really usefull when trying to create certain text games where you must return to a specific place, and in fact I still use it. Its alot easier to comprehend than all those loops and dim thingys. :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :bounce: :lol:
S VERDAD?!
10-30-2003, 01:28 AM
Andy,
The careful use of GOTO's is okay, but they make the code much harder to follow than using loops and subs. As a result it is much harder to debug. Terry, You find loops and arrays ("those dim thingys') hard to understand because you haven't learned to use them. Once you do you will find that they make programming much easier. among other things, they save you having to write the same code over and over again.
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)
For God so loved the world, that He gave His only begotten Son, that whoever believes in Him should not perish, but have eternal life.(John 3:16)
10-31-2003, 01:10 AM
Ah, but my code loops around again if the user doesn't press an available key
|
« Next Oldest | Next Newest »
|