Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question
Message
De
22/11/2005 17:59:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/11/2005 09:43:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01071036
Message ID:
01071343
Vues:
26
>Thanks.
>So, the vp_Myparameter is the parameter in the view? How should the parameter be defined in the view - as a public var? The only other way I know of is to set the parameter in the view as 'thisform.cCustomer_ID...
>
>I hope I'm making sense here.

The parameter needs to be set as a variable visible during the evaluation of the SQL statement of the view - IOW, a private variable to the piece of code from which you call requery() of your view.

The filter in your case didn't work because of the order of instantiation - the dataenvironment is created before any other objects (as they may be bound to its tables/fields), so it's just too early, the form (which is instantiated) last doesn't exist yet. You may filter it later - but still, doing a view is much better:

vp_parameter=thisform.accnt
requery("myviewalias")

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform