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

Yes, your code would work (I think) since you do a tableupdate and thus forces VFP 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


>
>I have a view of a table that includes an autoinc field from the underlying table. When I insert a new record into the view, the autoinc field does not autoinc like it does when I insert directly to the table itself.
>
>Is there some way that I can have the view get the autoinc value that the table would use without actually adding the record to the table? After all, that would defeat the purpose of my buffered view wouldn't it?
>

>
>I try it:
>- define a local view for a table with autoinc field
>- set autoinc field not updatable
>- add a row ( or more with tablebuffering )
>- tableupdate the view
>- REQUERY() return me new autoinc values
>
>Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform