Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.misc > #488

Re: Program execution problem

From "R.Wieser" <address@not.available>
Newsgroups comp.lang.basic.misc
Subject Re: Program execution problem
Date 2020-08-29 13:46 +0200
Organization Netfront http://www.netfront.net/
Message-ID <ridf81$1mb9$1@adenine.netfront.net> (permalink)
References <FEc1H.81519$lZ.36976@fx12.iad>

Show all headers | View raw


Robert,

>   Notice the program stops at line 530 for no good reason,
> and all files are closed.

Under QBasic 'end' terminates the program.  Are you sure you didn't mean 
'end if' there ?

(That all the files are closed could easily be part of PDS'es clean-up 
activities before actually terminating)

> in a section of the program, 6 statement lines got executed
> in 1,3,5,2,4,6

As you have not posted the involved code and I (we) do not have any kind of 
mind-reading capabilities there is nothing I (we) can say about that.

>   One would think that a more regimented, line-numbered
> program would behave.

It certainly enables you to write goto-enabled spagetti code (as in: 
unreadable/trackable code).   Why do you think most languages dropped the 
'goto' and/or strongly advice you NOT to use it ?  :-)


Basic bug-hunting most often boils down to isolating the problem by removing 
everything that does /not/ make the problem disappear (and sometimes 
replacing variable and/or human input by fixed stuff).   If you're lucky 
you're left with a single line. :-)

Regards,
Rudy Wieser

Back to comp.lang.basic.misc | Previous | NextNext in thread | Find similar


Thread

Re: Program execution problem "R.Wieser" <address@not.available> - 2020-08-29 13:46 +0200
  Re: Program execution problem Robert Baer <robertbaer@localnet.com> - 2020-08-31 15:45 -0700
    Re: Program execution problem Rev1 Robert Baer <robertbaer@localnet.com> - 2020-08-31 21:32 -0700
      Re: Program execution problem Rev1 "R.Wieser" <address@not.available> - 2020-09-01 10:02 +0200
    Re: Program execution problem "R.Wieser" <address@not.available> - 2020-09-01 09:35 +0200
      Re: Program execution problem Robert Baer <robertbaer@localnet.com> - 2020-09-01 13:30 -0700
        Re: Program execution problem "R.Wieser" <address@not.available> - 2020-09-02 08:43 +0200

csiph-web