Information générale
Catégorie:
Codage, syntaxe et commandes
>>I have a master-detail one to many form. One of my detail grid gives a pop-up window for the users to select item. Once the pop-up is released, the grid record pointer moves to the top.
>>
>>I understand that I need to save the record pointer in this case because VFP will reselect the master table, am I right? However my saving doesn't seem to work. I do my saving by What's wrong? Where should I do the restoring?
>>
>>nWorkArea = SELECT()
>>nRecno = RECNO()
>>xxx = CREATEOBJECT('Select_Record')
>>xxx.SHOW(1)
>>...
>>...
>>SELECT (nWorkArea)
>>GO (nRecno)
>
>Shih,
>
>You'd be much, much happier if you were using parameterized views and requerying them as needed. Seems to me that relations in forms are an heritage of the past and I avoid them by all means.
>
>José
I think I will do that in all my future applications. Thanks.
Précédent
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