Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BASIC question

Featured Replies

Hey so I'm taking a programming class and for whatever reason he's teaching us BASIC. I was wondering if anyone could explain to me exactly how the RUN command works.

 

So I have a

 

OPEN "c:\qb64\vars.cfg" FOR INPUT AS #1

INPUT #1, x

INPUT #1, y

INPUT #1, z

[many more vars]

CLOSE #1

 

code that I'm using to load a lot of variables I have saved elsewhere. I don't want this to make my main script huge, so I was thinking of using the RUN command to run it separately. Would all the variables be there and would be program treat them the same as when the code is directly in the script?

 

Also is there a way I can use functions stored elsewhere or that is above BASIC

Odd. Looks okay to me. (not really knowing BASIC though)

 

Can you verify that the right input is being accepted?

 

EDIT: Oh okay. What was the solution?

polvCwJ.gif
"It's not a rest for me, it's a rest for the weights." - Dom Mazzetti

  • Author

I brought the

 

OPEN...

INPUT #1, ..

CLOSE ...

 

lines for each CASE outside of the SELECT CASE and it just worked. I still don't understand why it was broken in the first place, or why the solution solved it, but hey the more you know.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.