Author |
Message |
Coog03
|
Posted: Sun Jun 15, 2003 2:38 pm Post subject: Keeping track of entry numbers |
|
|
In my program I have txtfields that save data to a file, when the data is saved it is put in like this
-----------Entry# 1 -------------------
All info here
-----------Entry# 2--------------------
Now since its using GUI I dunno how to keep track of the entry numbers after the user closes down the program. the entrynumber variable gets rest to 1 everytime the program is reset.
I want to be able to look through my .txt file that is generated from the txtfields and find what the last entry number is and then build on top of that.
This part is essential because the data saved to file is an array of records but i need to beable to sort it and therefore need to need the entry numbers to swap the array around
Please help me accomplish this |
|
|
|
|
|
Sponsor Sponsor
|
|
|
krishon
|
Posted: Sun Jun 15, 2003 2:49 pm Post subject: (No subject) |
|
|
theres a tutorial on saving variables to keep track of them |
|
|
|
|
|
Andy
|
Posted: Sun Jun 15, 2003 3:08 pm Post subject: (No subject) |
|
|
turing has its own example for that
anyways, make a flexible array and change it everytime something is inputed |
|
|
|
|
|
PaddyLong
|
Posted: Sun Jun 15, 2003 3:12 pm Post subject: (No subject) |
|
|
read up on the mod and seek parameters for the open command |
|
|
|
|
|
Coog03
|
Posted: Sun Jun 15, 2003 6:56 pm Post subject: (No subject) |
|
|
Could you maybe provide me with the links to these topics, I just looked and couldnt find them, thanks for the info |
|
|
|
|
|
PaddyLong
|
Posted: Sun Jun 15, 2003 7:27 pm Post subject: (No subject) |
|
|
look at them in the help file... (type open and press f9 - the parameters are listed in the "see also" section) |
|
|
|
|
|
|