Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO Form name NAMED var LINKED - Not working as Expected
Message
From
31/03/1998 13:45:31
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088455
Message ID:
00088460
Views:
28
>I am attempting to use the Name and Linked parameters for DO FORM. In the majority of circumstances it works as expected. I have one form that it is causing a problem. I have used:
>
>DO FORM timesheet NAME oTimeSheet LINKED
>
>DO FORM timesheet
>
>to attempt to call a form. The form is a Data entry form with a single table in the Data Environmen, which is the only difference from teh forms that work as expected. I have a TopLevel Form that the timesheet form resides in. When I call the timesheet form with the first line, the form starts and then exits. In the second instance, the timesheet form starts and remains activate and usable. The timesheet form is called from the click event of a command button on another form. Any ideas why this one form has a problem? or is it just me?

LINKED means that form existense==variable existense, i.e. form will be automatically released when the variable going out of scope (e.g. local var when snippet gets finished). You can workaround using global variables, or better add forms using CREATEOBJECT() and forget about LINKED.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform