Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameter Help
Message
De
06/08/2005 22:17:29
 
 
À
06/08/2005 21:31:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01039122
Message ID:
01039123
Vues:
19
>How do I open a form with the parameter coded in it so the view will not open the dialog box to ask me to manuall put the parameter in.
>
>I have a view in which I have a parameter filter. The filter is set as ?parssnumber (tried it without the ? mark but it gives me an error).
>
>The form, Form1 has a grid linked to the view. On the init section of the form1 I put:
>
>parssnumber = '222-22-2222'.
>
>But the dialog box keeps opening asking for the character value of parssnumber. Am I on the right track?


What happens is that the variable you are declaring in Init() loses scope and is therefore not seen in other methods. The way to persist variables is to assign them to properties of the object (in this case the form).

Before opening or requerying your view, you must assign the value to the variable used as view parameter.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform