Search found 3 matches

by johnno56
Sat Feb 28, 2015 8:17 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Replace Goto
Replies: 4
Views: 10518

Re: Replace Goto

Ok. Very cool indeed. That little gem will save heaps of time. Much appreciated. On a side note: I have found a published basic listing called 'Haunted House", which is a simple 64 location 'text adventure', that I am trying to convert it using only loops and subs. It has line numbers, but I ca...
by johnno56
Fri Feb 27, 2015 4:33 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Replace Goto
Replies: 4
Views: 10518

Re: Replace Goto

I figured that you would respond like that... *sigh* I too find spaghetti code difficult, especially when to goto's jump all over the place, and try use loops and subs and functions where I can. There are a lot of old games and programs that were quite good in their day, and I figured that I could t...
by johnno56
Thu Feb 26, 2015 2:56 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Replace Goto
Replies: 4
Views: 10518

Replace Goto

I have a bunch of old basic listings (line numbers) and I am trying to change them to a "more structured" look. (without line numbers) Are there any tutorials on how to replace "goto" statements? Gosub's I can replace with "sub" routines. But the way most old listings a...