in reply to increment record number
If you are using a database, most have some way to auto-increment a number. Otherwise, you'll have to read in the number from your previous entry, increment it by one (or whatever you are doing to ensure a "unique" value), then write the new record. And you'll have to carefully lock the file to make sure that nobody else increments the number while you are using it.
|
|---|