This is a multi-part message in MIME format.
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>
READSJ
COPYSJ
able
<a
href="downhole-measurements.html?find=able">Downhole Measurements</a>
READSJ 'above' record GONE
READSJ
COPYSJ
absorbers
<a href="vendor-profile.html?find=absorbers">Vendor Profile</a>
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>
READSJ 'accelerate' record GONE
READSJ
COPYSJ
accelerator
<a href="downhole-measurements.html?find=accelerator">Downhole Measurements</a>
**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.
JyBTQVZFIk5MV0QuQkFTIixBICAgICAgICAnbW9kIGNvcHkgb2Ygb3JpZ2luYWwNCiAgJw0K DQogIENMUw0KICAnIFN0YXJ0IG91dHB1dCBmaWxlIG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5ic3A7ICZuYnNwOzxh IGhyZWY9InZlbmRvci1wcm9maWxlLmh0bWw/ZmluZD1hY3RpdmUiPlZlbmRvciBQcm9maWxl PC9hPg0KICAgJzxicj48L2gzPiAgICAgICAgICAgICAgICAgICAgICcqU0ogcmVhZCBuZWVk cyB0byBza2lwIG92ZXIgdGhpcyBzdHVmZg0KICAgJyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICcqDQogICAnPGgyIGlkPSJCOiI+PEI+Qjo8L0I+PC9oMj4gICAgJyoNCiAgICc8 aDM+ICAgICAgICAgICAgICAgICAgICAgICAgICAnKg0KICAgJyAgICAmbmJzcDsgJm5ic3A7 DQogICAnICAgICZuYnNwOyAmbmJzcDthZGRlZA0KICAgJyAgICAmbmJzcDsgJm5ic3A7PGEg aHJlZj0idGVjaG5pY2FsLWFzcGVjdHMuaHRtbD9maW5kPWFkZGVkIj5UZWNobmljYWwgQXNw ZWN0czwvYT4NCiAgICc8YnI+DQogICAnKiogTm90ZSBlbmQgb2YgU0ogcmVjb3JkczoNCiAg ICc8YnI+PC9oMz4NCiAgICcgICAgICAgICAgICAgIDwhLS0NCiAgICcqKg0KICAnDQogICBG T1IgTFdEID0gMSBUTyAxNjQgICAgICAnTFdEIGtleXdvcmQgZmlsZSBzaXplDQogICAgR09T VUIgUkVBRElLVyAgICAgICAnZ2V0IG5ldyBrZXl3b3JkIGZvciBpbnNlcnQgYW5kIG1ha2Ug SUtXIHJlY29yZA0KICAgIEdPU1VCIFJFQURTSiAgICAgICAgJ05vdyByZWFkIFNKIHJlY29y ZCBhcnJheQ0KICAgJ0Fzc3VtZSBJS1ckPlNKS1ckIHNvIENBU0UzICAnZG8gbm90IHRyeSBv dGhlciBjb25kaXRpb25zDQoNCiAgICBTRUxFQ1QgQ0FTRSBUUlVFDQogICAgQ0FTRSAoSUtX JCA+IFNKS1ckKQ0KICAgICAgU1RBUlRTSiA9IDE6IEdPU1VCIENPUFlTSg0KICAgICAgR09T VUIgUkVBRFNKICAg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