Computer Science Canada

Keeping track of entry numbers

Author:  Coog03 [ 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

Author:  krishon [ Sun Jun 15, 2003 2:49 pm ]
Post subject: 

theres a tutorial on saving variables to keep track of them

Author:  Andy [ Sun Jun 15, 2003 3:08 pm ]
Post subject: 

turing has its own example for that
anyways, make a flexible array and change it everytime something is inputed

Author:  PaddyLong [ Sun Jun 15, 2003 3:12 pm ]
Post subject: 

read up on the mod and seek parameters for the open command

Author:  Coog03 [ Sun Jun 15, 2003 6:56 pm ]
Post subject: 

Could you maybe provide me with the links to these topics, I just looked and couldnt find them, thanks for the info

Author:  PaddyLong [ Sun Jun 15, 2003 7:27 pm ]
Post subject: 

look at them in the help file... (type open and press f9 - the parameters are listed in the "see also" section)