Quote:
Originally Posted by Robert_Zenz
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.