Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interface ideas for simple Many to Many table
Message
 
 
À
02/02/2007 09:12:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01184320
Message ID:
01191757
Vues:
7
>>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.

How exactly would I take it in VFP9? Also here we're currently using VFP8, should I tell my users to wait till we get VFP9?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform