QBASIC Questions 
Author Message
 QBASIC Questions

I have been programming with QBASIC for a
two months after decades with fortran.   I like
QBASIC better, but ....

1. Is there a way to get a list of the variables you
are using?  This is very useful for debug.

2. I have gotten an error message that I have a blank
line before the first line in a Subroutine.  Yet there
is no such blank line.  Sometimes the only cure
I have found is to put the whole subroutine on the
clipboard, delete, and start again.  What is
causing this error message?

Thanks,  Dan



Sat, 27 May 2000 03:00:00 GMT  
 QBASIC Questions

Quote:

>I have been programming with QBASIC for a
>two months after decades with FORTRAN.   I like
>QBASIC better, but ....
>1. Is there a way to get a list of the variables you
>are using?  This is very useful for debug.

No. Not built in that is. I think I have seen some parser
for it some time somewhere. You might as well write your
own, but will be very difficult considering the freedom
you have for declaring variables in qbasic.
Another thing most people do is a fortran, Pascal like solution:
start your program( and even your subprogram) with an explisiet
declaration of all variables and constants you are using. Although
its not necessary in qbasic.

Quote:
>2. I have gotten an error message that I have a blank
>line before the first line in a Subroutine.  Yet there
>is no such blank line.  Sometimes the only cure
>I have found is to put the whole subroutine on the
>clipboard, delete, and start again.  What is
>causing this error message?

Copied probably the sub/function from another program ?
I have had this problem sometimes with duplicate names
too. I think it has something to do with the way the IDE
handles cut and paste operations.
Anyway: if you be careful to make your subs/functions
before you are pasting anything in its body, then I think
you avoid the error.
Quote:
>Thanks,  Dan



Sat, 27 May 2000 03:00:00 GMT  
 QBASIC Questions

Quote:

> 1. Is there a way to get a list of the variables you
> are using?  This is very useful for debug.

Dan, Vernon Buerg has a QuickBasic 'cross reference' utility which would give
you this.  It is shareware.  You should be able to locate it somewhere on the
net, or another QuickBasic cross reference.
--
Judson McClendon          This is a faithful saying and worthy of all
Sun Valley Systems        acceptance, that Christ Jesus came into the

(please remove zzz from email id to respond)


Mon, 29 May 2000 03:00:00 GMT  
 QBASIC Questions



Quote:
>I have been programming with QBASIC for a
>two months after decades with FORTRAN.   I like
>QBASIC better, but ....

Of course!!! Just think how happy you'd be if you got a copy of powerbasic
v3.2 that is about 6 years younger than Qbasic and has JUST hit the market!
:)

Quote:
>1. Is there a way to get a list of the variables you
>are using?  This is very useful for debug.

There are, probubly, some routines out there to do that but if you'll get into
a more modular style of programming (SUBs and FUNCTIONs) you'll find that you
REALLY don't need to go through all that!

Quote:
>2. I have gotten an error message that I have a blank
>line before the first line in a Subroutine.  Yet there
>is no such blank line.  Sometimes the only cure
>I have found is to put the whole subroutine on the
>clipboard, delete, and start again.  What is
>causing this error message?

Probably something to do with WinTrash! Try dropping out to a full DOS window
and using Qbasic's editor/IDE instead of clipboard. Sounds like there is a
control character being imbedded in your text.

C'ya,

  ____    _    ____      ____  _____
 |  _ \  / \  / ___) __ | ___)(_   _)
 | |_)  / _ \ \____\/  \|  _)   | |
 |____//_/ \_\(____/\__/|_|     |_|

     www.basicguru.com/schullian



Mon, 29 May 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. stupid qbasic question

2. QBasic question

3. QBASIC QUESTION

4. QBasic question

5. Mini-SSC and Qbasic questions.

6. Really really stuck on this one. (QBasic Question)

7. QBasic question

8. Qbasic question

9. Is there a way? (qbasic question)

10. Qbasic question

11. General Qbasic questions

12. QBasic question

 

 
Powered by phpBB® Forum Software