Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a parameter to the DE
Message
 
 
À
17/06/2003 22:56:27
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00801032
Message ID:
00801045
Vues:
14
Hi Scott,

One way would be to declare variable you need to pass as private. In this case it would be visible in DE and form's load.

Another way would be to use parameter object (global to the application).

These are two ways I can think of right now. Perhaps, there is another elegant solution.

>I don't use the data environment much, so this might seem like a simple question, but here goes. I have some code in the DE of a form and I need to be able to pass a parameter to it from a calling form. Is this possible?
>
>I have a parameter statement in the init of the form but the code there only gets executed after the DE executes, which is to late to have access to the parameter. I am trying to execute a select statement to create a cursor from a file whos location is determined by the value of this parameter. This cursor is used as the source for a grid class that requires that the grid exist when the init code is run. I am sure there is a way around this, I just don't know enough about using the data environment to figure it out.
>
>
>Thanks for any help.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform