Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Probs selecting the right table
Message
De
04/12/2001 19:40:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00589026
Message ID:
00589590
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform