Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re: Question on Grid
I have a question on the grid. I have a grid which has a combo box inside. The value of that combo box is bounded to the child table. I added a button to allow user to add a record to the child table. The code for that button is as follows.
SELECT child
SET ORDER TO unique_id
IF thisform.Grid.activerow==0
APPEND BLANK
thisform.Grid.activatecell(1,1)
thisform.Grid.setfocus
ELSE
thisform.Grid.activatecell(thisform.Grid.activerow,1)
thisform.Grid.setfocus
APPEND BLANK
ENDIF
REPLACE unique_id with parent.unique_id
However, after running that program, the child table remains the current data session. I cannot get the control back to the parent table. Do anyone know how the parent table can gain back the control?
Thanks.
Chu
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement