Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE problem
Message
From
22/09/2001 20:24:10
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/09/2001 17:18:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00559679
Message ID:
00559727
Views:
16
>>I have problem with EXE file.
>>If I start program from VFP 7 with "Do form main_form" everything is OK, but if I make EXE, there is problem refreshing form "main_form" from form started from "main_form" an error message is "'main_form' does not exist" or samething like that.
>>It's maybe somethnig with "main_form" properties but I checked for everything that I know, like WindowType, Desktop, MDI Form,... and it's set properly.
>
>The form has to be included in the project. This means it has to be listed in the project, and it shouldn't be marked as "excluded".

It probably is, else it wouldn't show up. It could rather be that the form doesn't get the same variable name each time. The solution would be to pass the first form to the second as a parameter, store the reference as a second form's property and then use that reference to refresh the first form.

So in main_form, the call for the other form would be
do form other with this
and the other form's .init would have
lparameters oCaller
this.caller=oCaller
and the code to refresh the first form from the second would be
this.caller.refresh
This is the sure-fire way to reference a calling form. The variables assigned to reference a form object are automatic and can't be sure of their names; if the form is created twice the names would have to be different anyway.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform