Qbasicnews.com
April 09, 2020, 07:38:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: simplicity  (Read 1719 times)
Placeborick
Member
*
Posts: 35



« on: March 13, 2003, 02:07:13 PM »

is there an alternative to writing a line of commands in this way:
Code:

if a$ = "red" then color 12: print "This is red": color 7: input "press enter to continue"; ent$: goto 1000

it gets so annoying
Logged

-p
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #1 on: March 13, 2003, 02:39:33 PM »

if a$ = "red" then
color 12: print "This is red"
color 7: input "press enter to continue"; ent$
goto 1000
end if
Logged

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.
Placeborick
Member
*
Posts: 35



lol
« Reply #2 on: March 13, 2003, 02:52:08 PM »

lol i knew that already....just i forgot about it...duh!! hehe
thanks for reminding me anyway hehe  :rotfl:
Logged

-p
NovaProgramming
Been there, done that
*****
Posts: 1025



« Reply #3 on: March 13, 2003, 02:54:35 PM »

Placeborick:

Not that this pertains to the question that you asked whatsoever but you can have labels be other things rather than numbers ...  instead of goto 1000 you could have goto beginning

when you use a name for a label you just have to put :  after it and it will work.  It is handy for organizing information like that.
Logged

ovaProgramming.

One night I had a dream where I was breaking balls.  The next morning, BALLSBREAKER was born.

Quote from: "Haye, Phillip J."
 Excellent.  Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Placeborick
Member
*
Posts: 35



:-p
« Reply #4 on: March 13, 2003, 02:58:34 PM »

i know :-p hehe
Logged

-p
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!