Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Probs selecting the right table
Message
From
04/12/2001 19:40:36
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00589026
Message ID:
00589590
Views:
14
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
Map
View

Click here to load this message in the networking platform