Author Topic: I discovered this difference between QB and QB64... [My mistake. No Difference.]  (Read 6322 times)

0 Members and 1 Guest are viewing this topic.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: I discovered this difference between QB and QB64
« Reply #15 on: October 09, 2021, 11:44:51 am »
I'm with Fellippe, the example you stated to error out seems to work fine with no errors in QB45.


Granted after becoming radioactive I only have a half-life!

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: I discovered this difference between QB and QB64
« Reply #16 on: October 09, 2021, 11:49:28 am »
Maybe Pete's Peeked and Poked one too many times?

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: I discovered this difference between QB and QB64
« Reply #17 on: October 09, 2021, 12:27:17 pm »
Maybe Pete's Peeked and Poked one too many times?

you mean "and been Poked" Darn aliens!

did QB45 come with California's "Prop 65" warning? Maybe he can sue!(cause everything in Cali' causes cancer, even the air)
Granted after becoming radioactive I only have a half-life!

Offline MWheatley

  • Newbie
  • Posts: 64
    • View Profile
Re: I discovered this difference between QB and QB64
« Reply #18 on: October 09, 2021, 05:02:49 pm »
Runs here, too, in QB45 and PDS 7.1, although I haven't tried in QBasic, as that's not presently installed on this machine.

Malcolm

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: I discovered this difference between QB and QB64
« Reply #19 on: October 11, 2021, 10:27:08 pm »
@FellippeHeitor  Well I got back, read the posts, and dug up the old Win 7. I didn't save the code from before, so I typed it back in QuickBasic, and ran it in DOSBox. So this time, the program with DIM ran to completion. So whatever happened before to make it  throw a subscript out of range error did not happen this time, and as we all know with computers, that means whatever I did last time was not the same. So my apologies. I don't know if this was some senior moment or eyesight situation, because my DOSBox renders a very small IDE. Now I wished I saved the damn snippet, so I could see what happened. My best guess is I may have typed a different variable like a1$(11) instead of a$(11). Anyway, a "blonder" moment indeed.

Conclusion. QB and QB64 act exactly the same way in the situations described.

Pete   
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

FellippeHeitor

  • Guest
Re: I discovered this difference between QB and QB64
« Reply #20 on: October 11, 2021, 10:28:29 pm »
Glad it's cleared now. Thanks for confirming.

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
No excuse!

You are here by sentenced to....

20 years hard coding!

“Start codein’ ya doggone long eared galoot”

Granted after becoming radioactive I only have a half-life!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
You mean like this?

Code: QB64: [Select]
  1. PRINT "Eat me, varmint!"
  2. LOOP UNTIL HellFreezesOver

Look on the bright side, at least you got me to try CamelCase.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/