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.
In reply to Re: increment record number
by turnstep
in thread increment record number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |