14.06.2015, 02:18
Hmm, save the last deleted ID in some variable and just add one to it to figure out next ID. It's just a quick thinking, check this example maybe:
Edit:
I think you should add to my code to check if the deleted ID is highest or not.
pawn Код:
// When deleting for example ID 5
lastDeletedID = 5;
// Then somewhere else
printf("The next ID will be: %d, want to insert?", lastDeletedID + 1);
I think you should add to my code to check if the deleted ID is highest or not.