Liberty BASIC Community Forum
« Really Stumped »

Welcome Guest. Please Login or Register.
Nov 24th, 2017, 10:49am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Really Stumped  (Read 161 times)
milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 113
xx Really Stumped
« Thread started on: Jul 5th, 2017, 4:01pm »

I can not figure this out to save my life.

I have a datafile of horse records. I go through it and count how many horses there are in the file. It gives me 130.

So I run the following code and at horse 122 I get error..is empty

open RacefullFname$ for input as #Hdatarace '---------OPEN FILE AND START READING DATA IN TO MASTER ARRAY READY FOR PROCESSING.


for hhh = 0 to numberhorses-1



for y = 0 to 1434
'************* This is the added code *****************
temp$=inputto$(#Hdatarace,",")

There is more code obviously. But I get through this 121 times and on the 122 horse, which I know has data in there, I get the error and it crashes.

Any ideas? And nothing changes between successful loop 121 and error loop 122.

Thanks,
Milfredo
User IP Logged

milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 113
xx Re: Really Stumped
« Reply #1 on: Jul 5th, 2017, 4:06pm »

By the way. The line..This is added code was a fellow programmer letting me know he's made changes, but it was long ago and has no bearing on the current problem.

Milfredo
User IP Logged

milfredo
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 113
xx Re: Really Stumped
« Reply #2 on: Jul 5th, 2017, 5:14pm »

It seems I have figured out the problem. I was using the hhh and it is used in the program that I am looping through so the value gets changed.

That's what you get for Lazy programming.

Sorry guys.

Milfredo
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls