Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local view from remote views
Message
De
18/08/1998 16:39:40
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00127858
Message ID:
00127893
Vues:
37
Hola Eduardo....

>I'm using a local view made of three remote views. Every time I need to use the local view I need to requery() the three remote views that uses.
>Is there a way the local view could automatically requery the remote views that need.

Not completely automatically. You could create a custom method, called CmpRequery (for Compound Rrequery) in your Application object and put the three other calls there + the REQUERY of the local view. That way, in code, you'd have the one line entry:

=oApp.CmpRequery('localviewname')

The mehthod would be:


*** Appl.CmpRequery
LPARAMETERS cLocalView && unused value to make this method look like REQUERY()
=REQUERY('remoteview1')
=REQUERY('remoteview2')
=REQUERY('remoteview3')
=REQUERY('localview')
RETURN .T.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform