View Single Post
  #4 (permalink)  
Old 09-23-2008, 4:08 AM
stresss stresss is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2008
Posts: 21
Reputation: 22
stresss is on a distinguished programming path ahead
Default

Quote:
Originally Posted by Robert_Zenz View Post
Hello.

Shall this be kept if the form closes, or if the program closes?
First would a global variable.
Second would put you in the need to save the variable 'somewhere'. You can use My.Settings for this, you could use a XML, INI or plain Textfile for it.

Bobby
It shld be kept even when the program closesm, so when the user create a message with ID as 1000, and closes the program, the next time the user opens it, the ID will be 1001 ( that's for the 1st radiobutton). Then the second radiobutton starts from 2000, so if the user select the 2nd radiobutton and create a message, it will start from 2000. The ID is taken from a table and it's the primary key.
Reply With Quote