Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interface ideas for simple Many to Many table
Message
From
02/02/2007 09:12:56
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01184320
Message ID:
01191756
Views:
9
>Hi Anton,
>
>Ed's idea worked for me, but I found a serious flaw in my implementation. When I designed my database (native VFP), I took AutoInc for my PKs. HUGE mistake! Now I'm in a catch 22 situation, because after I inserted a new record in a table I can not get my PK back. It looks like I have to switch to NextID() for now and use GUID in all other new projects instead.
>
If I understand correctly the problem is not with Autoinc itself. You cannot retireve new id because CursorAdapter doesn't return it, correct? VFP9 Help implies that AfterInsert event could be used (actualy it says for ADO source), i.e. record pointer didn't move yet.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform