04-03-2003, 07:25 AM
Thanks for the help, I will try that, it may actually make printing my records MUCH easier.
I had some trouble attempting the to implement the code you provided yeasterday. Unfortunately I don't have my exact code here (i'll post it tommorow, as I don't have my disk), but essentially this is what happens.
edit: this isn't all I put, it's just what I can remember
ERROR: Array not Defined
And when I try to execute a FOR NEXT LOOP to print all my data
I just get an infinite loop that flashes my data on the screen, repeatedly
When I attempt to delete a record and use a
I just get an infinite loop that goes nowhere. It's really hard to explain and I will try to get my source tommorow
One more thing, I am currently working on having my data placed into the record sequenced location number (so the first record will go into number 1, second in 2 etc), but I am unsure on how to do it.
BTW, incase you're wondering, by helping me you aren't doing my work for me (you are just helping my out a lot )[/code]
EDIT:
Just so you know what I have to do, I need to do the following
To get a C mark
Create a File storage program to store records
Be able to add records
Be able to delete records
Be able to modify records
To get a B mark
Be able to sort the array by two different criteria (i.e. by title, or my genre)
To get a A mark
Be able to use a binary search, a sequential search and a bunch of other stuff.
This is the design I came up with
Add records - standard random filage
Delete Records- Print my records, with the record number, and give them an option of what they want to delete
Modify Records- Print my records with the record number, and give them an option of what record they want to replace
Sorting Records- Have the records set up in a sequential location (1, 2, 3, 4, 5 etc) and use a fornext loop to place them into an array.
i.e.
The rest- use my array to do some basic sorting and searching.
I know exactly what to do, I just need to be able to know how to do the following.
1. Delete a record
2. Have my records located sequentially (which will then allow my to easily print it, assign it to arrays and stuff)
I can figure everything else out (due to the help you gave me )
When I was thinking about it earlier I came to the conclusion that blank records didn't really matter as I would just get the program to ignore it.
I had some trouble attempting the to implement the code you provided yeasterday. Unfortunately I don't have my exact code here (i'll post it tommorow, as I don't have my disk), but essentially this is what happens.
edit: this isn't all I put, it's just what I can remember
Code:
' game is the name of my random file
Erase game
ERROR: Array not Defined
And when I try to execute a FOR NEXT LOOP to print all my data
Code:
FOR X = 1 to final
GET #1, final, game
PRINT title.game
NEXT X
I just get an infinite loop that flashes my data on the screen, repeatedly
When I attempt to delete a record and use a
Code:
Do Until EOF(1)
'code goes here
LOOP
One more thing, I am currently working on having my data placed into the record sequenced location number (so the first record will go into number 1, second in 2 etc), but I am unsure on how to do it.
BTW, incase you're wondering, by helping me you aren't doing my work for me (you are just helping my out a lot )[/code]
EDIT:
Just so you know what I have to do, I need to do the following
To get a C mark
Create a File storage program to store records
Be able to add records
Be able to delete records
Be able to modify records
To get a B mark
Be able to sort the array by two different criteria (i.e. by title, or my genre)
To get a A mark
Be able to use a binary search, a sequential search and a bunch of other stuff.
This is the design I came up with
Add records - standard random filage
Delete Records- Print my records, with the record number, and give them an option of what they want to delete
Modify Records- Print my records with the record number, and give them an option of what record they want to replace
Sorting Records- Have the records set up in a sequential location (1, 2, 3, 4, 5 etc) and use a fornext loop to place them into an array.
i.e.
Code:
FOR X = 1 to totalrecords
GET #1, X, Game
Let Title.Game = Title(x)
NEXT X
The rest- use my array to do some basic sorting and searching.
I know exactly what to do, I just need to be able to know how to do the following.
1. Delete a record
2. Have my records located sequentially (which will then allow my to easily print it, assign it to arrays and stuff)
I can figure everything else out (due to the help you gave me )
When I was thinking about it earlier I came to the conclusion that blank records didn't really matter as I would just get the program to ignore it.