: http://24.93.200.104/billy : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : thx :
link to asm2.html points to html tutorial instead.
Also valid: [code] DO a$ = INKEY$ LOOP WHILE a$ = ""
DO WHILE a$ = "" a$ = INKEY$ LOOP
DO a$ = INKEY$ LOOP UNTIL a$ <> ""
DO UNTIL a$ <> "" a$ = INKEY$ LOOP [/code] Varname is not needed after NEXT. FOR supports any expression or constant that results in a value that can be used as a number. For supports the Step arguement to control the steps the counter takes to get to the final value. [code] FOR I = 1 TO 10
x = 5 FOR I = 1 TO x * 2
x = "5" FOR I = 1 TO VAL(x) * 3 - 5
FOR I = 1 TO 10 STEP 2 'Counts by 2s
FOR I = 10 TO 1 STEP -2 'Counts by 2s backwards [/code] Because of the power of DO, WHILE is pretty much outdated in later versions of Basic.
GOTO should be avoided for the exact reason you state: "...may seem confusing..." It is much harder to read than if one were to use the more advanced control flow statments.
"You must enclose what you want to be printed in quotes." Oh? How about this: [code] x = 10 PRINT x [/code] What if you want it to not append the newline? [code] PRINT "Hel"; PRINT "lo!" [/code] How about the shortcut "?"? [code] ? "Hi!" [/code] You should avoid getting used to using the END command. Visual Basic also supports it, but it results in memory leaks. Not a problem if you intend to stay in QB, but if you are used to using END and move to VB, you'll help create "out of resource" and "out of memory" errors.
ELSE: [code] IF a = 4 THEN ELSEIF a = 5 THEN ELSE 'For everything else END IF [/code]
And finally, you did know it's illegal to post copies of QBasic or links to sites that have copies, didn't you? I couldn't care less, but some people might have a fit over it.
: : http://24.93.200.104/billy : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : thx : : : : link to asm2.html points to html tutorial instead. : : Also valid: : [code] : DO : a$ = INKEY$ : LOOP WHILE a$ = "" : : DO WHILE a$ = "" : a$ = INKEY$ : LOOP : : DO : a$ = INKEY$ : LOOP UNTIL a$ <> "" : : DO UNTIL a$ <> "" : a$ = INKEY$ : LOOP : [/code] : Varname is not needed after NEXT. FOR supports any expression or constant that results in a value that can be used as a number. For supports the Step arguement to control the steps the counter takes to get to the final value. : [code] : FOR I = 1 TO 10 : : x = 5 : FOR I = 1 TO x * 2 : : x = "5" : FOR I = 1 TO VAL(x) * 3 - 5 : : FOR I = 1 TO 10 STEP 2 'Counts by 2s : : FOR I = 10 TO 1 STEP -2 'Counts by 2s backwards : [/code] : Because of the power of DO, WHILE is pretty much outdated in later versions of Basic. : : GOTO should be avoided for the exact reason you state: "...may seem confusing..." It is much harder to read than if one were to use the more advanced control flow statments. : : "You must enclose what you want to be printed in quotes." Oh? How about this: : [code] : x = 10 : PRINT x : [/code] : What if you want it to not append the newline? : [code] : PRINT "Hel"; : PRINT "lo!" : [/code] : How about the shortcut "?"? : [code] : ? "Hi!" : [/code] : You should avoid getting used to using the END command. Visual Basic also supports it, but it results in memory leaks. Not a problem if you intend to stay in QB, but if you are used to using END and move to VB, you'll help create "out of resource" and "out of memory" errors. : : ELSE: : [code] : IF a = 4 THEN : ELSEIF a = 5 THEN : ELSE 'For everything else : END IF : [/code] : : And finally, you did know it's illegal to post copies of QBasic or links to sites that have copies, didn't you? I couldn't care less, but some people might have a fit over it. :
thank you for your suggestions. I will try to add those soon. I wasnt even aware that there was a shortcut for print! Ill be sure to include that too. Those tutorials were the first tutorials I have ever wrote. So they werent very thought out. Oh yea, and the asm2 link is fixed now.
: thank you for your suggestions. I will try to add those soon. I wasnt even aware that there was a shortcut for print! Ill be sure to include that too. Those tutorials were the first tutorials I have ever wrote. So they werent very thought out. Oh yea, and the asm2 link is fixed now. :
Yup, that shortcut for PRINT has been around since at least the BASIC interpreter for the Apple IIE! QB expands it to PRINT, but the shortcut does still exist.
The tutes aren't bad, especially for a first run. If I still had them, I'd show you what I first came up with!
[b][red]This message was edited by the Moderator at 2002-7-11 23:38:37[/red][/b][hr] : http://24.93.200.104/billy : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : thx :
hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities. nice site you got there, btw
: [b][red]This message was edited by the Moderator at 2002-7-11 23:38:37[/red][/b][hr] : : http://24.93.200.104/billy : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : thx : : : : hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities. : nice site you got there, btw : : actually, Ive never read your tutorials until now. Thats interesting though, we color coded stuff. Nice site though, if its the one in your profile.
: : [b][red]This message was edited by the Moderator at 2002-7-11 23:38:37[/red][/b][hr] : : : http://24.93.200.104/billy : : : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : : thx : : : : : : : hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities. : : nice site you got there, btw : : : : : actually, Ive never read your tutorials until now. Thats interesting though, we color coded stuff. Nice site though, if its the one in your profile. :
Yeah, that's the one. Thanks . I was just wonderin'. I just thought it was weird that we used the same color code, both talked in the first person plural, and your email address even contains 'billy' and 'wm'. freaky hehe
: : : [b][red]This message was edited by the Moderator at 2002-7-11 23:38:37[/red][/b][hr] : : : : http://24.93.200.104/billy : : : : : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : : : thx : : : : : : : : : : hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities. : : : nice site you got there, btw : : : : : : : : actually, Ive never read your tutorials until now. Thats interesting though, we color coded stuff. Nice site though, if its the one in your profile. : : : : Yeah, that's the one. Thanks . : I was just wonderin'. I just thought it was weird that we used the same color code, both talked in the first person plural, and your email address even contains 'billy' and 'wm'. freaky hehe :
: http://24.93.200.104/billy : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : thx : Really your site is ok, but did you say that the tutorials were color coated? STRANGE.......................................
: : http://24.93.200.104/billy : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : thx : : : Really your site is ok, but did you say that the tutorials were color coated? STRANGE....................................... : : why is that strange?
: : : http://24.93.200.104/billy : : : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : : thx : : : : : Really your site is ok, but did you say that the tutorials were color coated? STRANGE....................................... : : : : : why is that strange? : I think you meant to say "color coded", not "color coated". I was just giving you heck for your typo. Please forgive me. I also forget that many people on the internet do not speak english as their first language, I do not think that this is the case however (Billy Miller!). I teach english as well as computers, so I like to tease when someone writes phrases such as "it's not to good", "I learnt C++"
: : : : http://24.93.200.104/billy : : : : : : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.' : : : : thx : : : : : : : Really your site is ok, but did you say that the tutorials were color coated? STRANGE....................................... : : : : : : : : why is that strange? : : : I think you meant to say "color coded", not "color coated". I was just giving you heck for your typo. Please forgive me. I also forget that many people on the internet do not speak english as their first language, I do not think that this is the case however (Billy Miller!). I teach english as well as computers, so I like to tease when someone writes phrases such as "it's not to good", "I learnt C++" : : heh oops... I guess color coated is like m&m's. Coded is like an incription. Im horrible at spelling and the english subject obviously not the language though heh!
Comments
:
: I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: thx
:
link to asm2.html points to html tutorial instead.
Also valid:
[code]
DO
a$ = INKEY$
LOOP WHILE a$ = ""
DO WHILE a$ = ""
a$ = INKEY$
LOOP
DO
a$ = INKEY$
LOOP UNTIL a$ <> ""
DO UNTIL a$ <> ""
a$ = INKEY$
LOOP
[/code]
Varname is not needed after NEXT. FOR supports any expression or constant that results in a value that can be used as a number. For supports the Step arguement to control the steps the counter takes to get to the final value.
[code]
FOR I = 1 TO 10
x = 5
FOR I = 1 TO x * 2
x = "5"
FOR I = 1 TO VAL(x) * 3 - 5
FOR I = 1 TO 10 STEP 2 'Counts by 2s
FOR I = 10 TO 1 STEP -2 'Counts by 2s backwards
[/code]
Because of the power of DO, WHILE is pretty much outdated in later versions of Basic.
GOTO should be avoided for the exact reason you state: "...may seem confusing..." It is much harder to read than if one were to use the more advanced control flow statments.
"You must enclose what you want to be printed in quotes." Oh? How about this:
[code]
x = 10
PRINT x
[/code]
What if you want it to not append the newline?
[code]
PRINT "Hel";
PRINT "lo!"
[/code]
How about the shortcut "?"?
[code]
? "Hi!"
[/code]
You should avoid getting used to using the END command. Visual Basic also supports it, but it results in memory leaks. Not a problem if you intend to stay in QB, but if you are used to using END and move to VB, you'll help create "out of resource" and "out of memory" errors.
ELSE:
[code]
IF a = 4 THEN
ELSEIF a = 5 THEN
ELSE 'For everything else
END IF
[/code]
And finally, you did know it's illegal to post copies of QBasic or links to sites that have copies, didn't you? I couldn't care less, but some people might have a fit over it.
: :
: : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : thx
: :
:
: link to asm2.html points to html tutorial instead.
:
: Also valid:
: [code]
: DO
: a$ = INKEY$
: LOOP WHILE a$ = ""
:
: DO WHILE a$ = ""
: a$ = INKEY$
: LOOP
:
: DO
: a$ = INKEY$
: LOOP UNTIL a$ <> ""
:
: DO UNTIL a$ <> ""
: a$ = INKEY$
: LOOP
: [/code]
: Varname is not needed after NEXT. FOR supports any expression or constant that results in a value that can be used as a number. For supports the Step arguement to control the steps the counter takes to get to the final value.
: [code]
: FOR I = 1 TO 10
:
: x = 5
: FOR I = 1 TO x * 2
:
: x = "5"
: FOR I = 1 TO VAL(x) * 3 - 5
:
: FOR I = 1 TO 10 STEP 2 'Counts by 2s
:
: FOR I = 10 TO 1 STEP -2 'Counts by 2s backwards
: [/code]
: Because of the power of DO, WHILE is pretty much outdated in later versions of Basic.
:
: GOTO should be avoided for the exact reason you state: "...may seem confusing..." It is much harder to read than if one were to use the more advanced control flow statments.
:
: "You must enclose what you want to be printed in quotes." Oh? How about this:
: [code]
: x = 10
: PRINT x
: [/code]
: What if you want it to not append the newline?
: [code]
: PRINT "Hel";
: PRINT "lo!"
: [/code]
: How about the shortcut "?"?
: [code]
: ? "Hi!"
: [/code]
: You should avoid getting used to using the END command. Visual Basic also supports it, but it results in memory leaks. Not a problem if you intend to stay in QB, but if you are used to using END and move to VB, you'll help create "out of resource" and "out of memory" errors.
:
: ELSE:
: [code]
: IF a = 4 THEN
: ELSEIF a = 5 THEN
: ELSE 'For everything else
: END IF
: [/code]
:
: And finally, you did know it's illegal to post copies of QBasic or links to sites that have copies, didn't you? I couldn't care less, but some people might have a fit over it.
:
thank you for your suggestions. I will try to add those soon. I wasnt even aware that there was a shortcut for print! Ill be sure to include that too. Those tutorials were the first tutorials I have ever wrote. So they werent very thought out. Oh yea, and the asm2 link is fixed now.
:
Yup, that shortcut for PRINT has been around since at least the BASIC interpreter for the Apple IIE! QB expands it to PRINT, but the shortcut does still exist.
The tutes aren't bad, especially for a first run. If I still had them, I'd show you what I first came up with!
Later,
KDL
: http://24.93.200.104/billy
:
: I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: thx
:
hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities.
nice site you got there, btw
: : http://24.93.200.104/billy
: :
: : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : thx
: :
:
: hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities.
: nice site you got there, btw
:
:
actually, Ive never read your tutorials until now. Thats interesting though, we color coded stuff. Nice site though, if its the one in your profile.
: : : http://24.93.200.104/billy
: : :
: : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : : thx
: : :
: :
: : hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities.
: : nice site you got there, btw
: :
: :
: actually, Ive never read your tutorials until now. Thats interesting though, we color coded stuff. Nice site though, if its the one in your profile.
:
Yeah, that's the one. Thanks .
I was just wonderin'. I just thought it was weird that we used the same color code, both talked in the first person plural, and your email address even contains 'billy' and 'wm'. freaky hehe
: : : : http://24.93.200.104/billy
: : : :
: : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : : : thx
: : : :
: : :
: : : hey, have you ever read my tutorials? . If so, and I've rubbed off on people, I'm honored I read yours and noticed striking similarities.
: : : nice site you got there, btw
: : :
: : :
: : actually, Ive never read your tutorials until now. Thats interesting though, we color coded stuff. Nice site though, if its the one in your profile.
: :
:
: Yeah, that's the one. Thanks .
: I was just wonderin'. I just thought it was weird that we used the same color code, both talked in the first person plural, and your email address even contains 'billy' and 'wm'. freaky hehe
:
That would be really freaky
:
: I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: thx
:
Really your site is ok, but did you say that the tutorials were color coated? STRANGE.......................................
: :
: : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : thx
: :
: Really your site is ok, but did you say that the tutorials were color coated? STRANGE.......................................
:
:
why is that strange?
: : :
: : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : : thx
: : :
: : Really your site is ok, but did you say that the tutorials were color coated? STRANGE.......................................
: :
: :
: why is that strange?
:
I think you meant to say "color coded", not "color coated". I was just giving you heck for your typo. Please forgive me. I also forget that many people on the internet do not speak english as their first language, I do not think that this is the case however (Billy Miller!). I teach english as well as computers, so I like to tease when someone writes phrases such as "it's not to good", "I learnt C++"
: : : :
: : : : I also have an HTML tutorial and 2 asm tutorials and about 5 qbasic tutorisla.'
: : : : thx
: : : :
: : : Really your site is ok, but did you say that the tutorials were color coated? STRANGE.......................................
: : :
: : :
: : why is that strange?
: :
: I think you meant to say "color coded", not "color coated". I was just giving you heck for your typo. Please forgive me. I also forget that many people on the internet do not speak english as their first language, I do not think that this is the case however (Billy Miller!). I teach english as well as computers, so I like to tease when someone writes phrases such as "it's not to good", "I learnt C++"
:
:
heh oops... I guess color coated is like m&m's. Coded is like an incription. Im horrible at spelling and the english subject obviously not the language though heh!