General information
Category:
Forms & Form designer
Have you looked at TableUpdate() and TableRevert()? Are you using parameterized views for the records in the grid?
the recordsource of the grid is just another table and there is no problems
with the tablerevert, tableupdate or cusorsorsetprop(). it's just that once
you leave the grid there is an automatic switching to the parent table, you can
see this too with two textboxes with diferent controlsources, the execution
of the revert, save, delete buttons would only apply to the first table you open or the table defined in initialselectalias. it'slike you got to do an explicit selection of the area you are going to work with. I just wanted a generic code that no matter how many tables you got open in a form could revert the last table selected when a control got the focus.
i wanted something like this:
select alias() ** not necessary
thisform.lockscreen=.T.
=tablerevert(.f.)
thisform.lockscreen=.F.
thisform.show
thanks
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only