Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Increment
Message
From
26/09/2000 13:23:45
 
 
To
26/09/2000 11:43:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00420989
Message ID:
00421068
Views:
23
I'm sorry if that makes no sense. What happens is it tries to find a table name in syskeys. If its not there I want it to default the value to 1 for that table and save it in the syskeys table as 1. The problem is it then goes into the else part of the statement and it increments the lastid again and so its saved in syskeys as 2. Next time I go to add it finds the table name in syskeys and increments the id to 3 so I now get three instead of 2. How come it goes into that else part of the if the first time through?

Hope that clears things up!

Tyler
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform