>Is that code multiuser/multithread safe? I really don't see how getautoincvalue() can be used outside the context of a VFP stored proc. Also this function would seem to fail should the inserted table have an INSERT trigger which causes another autoinc field in another table to be consumed.
Yes, that is my concern as well. If there is one implementation that could guarantee that it would be the event handler one. I asked Aleksey to provide information about that.