Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie: how to keep form from immediately releasing?
Message
From
10/11/2006 15:54:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/11/2006 15:27:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01168751
Message ID:
01168853
Views:
14
>Thanks guys! The problem was the LINKED clause of the DO FORM command that the VFP 2.x converter uses. Took that out and now the form remains active. I'm not sure when I ever would use LINKED, but maybe someday I'll figure that one out :)

IIRC, if you use LINKED, then the form closes when the variable disappears - usually, because it gets out of scope (you exit from the method or function where it is declared).

You could link the form to a property of an object that doesn't go out of scope.

On the other hand, you could just do a DO FORM, without specifying any variable.

You would usually connect the form to a variable if you need a return value from the form - but this only makes sense if the form is modal - i.e., nothing happens in the calling method until the form closes.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform