Groups | Search | Server Info | Login | Register
Groups > comp.lang.basic.misc > #491
| Subject | Re: Program execution problem Rev1 |
|---|---|
| Newsgroups | comp.lang.basic.misc |
| References | <FEc1H.81519$lZ.36976@fx12.iad> <ridf81$1mb9$1@adenine.netfront.net> <S3f3H.2222$6w2.829@fx44.iad> |
| From | Robert Baer <robertbaer@localnet.com> |
| Message-ID | <_9k3H.66155$tL.1124@fx15.iad> (permalink) |
| Date | 2020-08-31 21:32 -0700 |
[Multipart message — attachments visible in raw view] - view raw
Robert Baer wrote:
> R.Wieser wrote:
>> 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 ?
> * In one iteration of the program, that is what was intended..
>
>>
>> (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. :-)
> * Now THAT would be rather nice..do my taxes in one line...
>
>>
>> Regards,
>> Rudy Wieser
>
Program (highly revised) listing attached.
Partial copy of output:
<h2 id="A:"><B>A:</B></h2>
<h3>
READSJ
COPYSJ
able
<a
href="downhole-measurements.html?find=able">Downhole Measurements</a>
<br>
READSJ 'above' record GONE
READSJ
COPYSJ
absorbers
<a href="vendor-profile.html?find=absorbers">Vendor
Profile</a>
<br>
READSJ 'absorbing' record GONE
READSJ
COPYSJ
absorption
<a
href="downhole-measurements.html?find=absorption">Downhole Measurements</a>
<a
href="https://www.hamamatsu.com/resources/pdf/etd/PMT_handbook_v3aE.pdf?find=absorption">Photomultiplier
Tubes Basics</a>
<br>
READSJ 'accelerate' record GONE
READSJ
COPYSJ
accelerator
<a
href="downhole-measurements.html?find=accelerator">Downhole Measurements</a>
<br>
**END COPY**
So there are two problems:
1) NO "debug" output from the git-go
FOR LWD = 1 TO 164 'LWD keyword file size
GOSUB READIKW '**NO "READIKW" PRINTOUT
2) Skips every other SJ keyword.
Comments?
Thanks.
Back to comp.lang.basic.misc | Previous | Next — Previous in thread | Next in thread | Find similar
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