Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter to the DE
Message
 
 
To
17/06/2003 22:56:27
Scott Butts
Ims Specialty Services
Twin Falls, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00801032
Message ID:
00801045
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform