Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized Views...Referencing
Message
De
01/04/1999 10:43:09
 
 
À
01/04/1999 09:45:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00203633
Message ID:
00204251
Vues:
17
>I saw in the app. you sent me that you placed the following code:
>
>lnParentID=Parenttbl.pk
>Requery('childview')
>ThisForm.childgrid.Refresh()
>
> 1. Would this be the same if I am using text boxes for the parent, versus a grid? I assume so. I would place this code in the REQUERY VIEW properties, just like this one is. I just want to make sure.

The difference is, in the sample that I sent, the parent grid is the mechanism that the user uses to change the parent record pointer. If you don't have a grid, but you have textboxes, you have to have another method of moving the record pointer. It sounds like you are going to have a buttonset (vcr buttons?) for this. Anyhow, All you need to do is call THISFORM.requeryViews() after the pointer changes. So if a button class is doing the changing, you'l want to put code in the each button's click event like:

DODEFAULT() && Run the default VCR functionality first
THISFORM.requeryViews()
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform