Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

registry get and save data to keys

Status
Not open for further replies.

russellmunday

Technical User
Jul 24, 2003
87
GB
I need to have a sequential order number on my program i would like to store this number in the registry and retreive the value + 1 to get the next number when the program starts or the new button is used and then store that number in the registry key again ready for the next time. despite looking at various code on the net i don't understand how to do it.
Idealy i will need to create the key on installation then store and retreive values with the program. any help appreciated.
 
Does this thread help?

thread222-909248

Do a search for 'Registry' in the search function here there were a few results.

Transcend
[gorgeous]
 
You can also use the much simpler 'GetSetting' and 'SaveSetting' functions built into VB. Search the help files and this forum for more information.

zemp
 
I would think very carefully before you proceed down the Registry route - because without some very complex programming you will be effectively limiting your program to be a single user system.

I would use an Orders table on a database, and have the ordernumber as a Unique, Auto Numbering (and primary key) field myself.

mmilan
 
I agree with mmilan, the registry would be a poor solution for the task at hand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top