Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying again for an answer/response
Message
From
24/03/2004 13:34:41
 
 
To
24/03/2004 13:15:38
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00889203
Message ID:
00889355
Views:
12

Hi Fabio,

Yes, your code would work (I think) since you do a tableupdate and thus forces Visual FoxPro to add the row to the underlying table and that triggers the AutoInc.

My issue was, how can I get the AutoInc value via the view without having to commit the row?

As Tore pointed out, it looks like I may have to wait for VFP9.


Regards,

Mike


But, you are speaking about a autoinc about VFP8 or SQL Server?

VFP9 support SQL @@IDENTITY (perhaps).

If you want VFP8 new AutoInc, you must trigger the table.
If you want the last AutoInc value you can to use AFIELDS(),
but on a shared enviroment you must lock the table header.

A suspect, You want the new autoinc into the view before the tableupdate ?

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform