Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Keeping track of entry numbers
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Coog03




PostPosted: 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
Sponsor
sponsor
krishon




PostPosted: Sun Jun 15, 2003 2:49 pm   Post subject: (No subject)

theres a tutorial on saving variables to keep track of them
Andy




PostPosted: 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




PostPosted: Sun Jun 15, 2003 3:12 pm   Post subject: (No subject)

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




PostPosted: 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




PostPosted: 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)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: