Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO Form name NAMED var LINKED - Not working as Expected
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088455
Message ID:
00088464
Views:
26
Fred,

LINKED means that the form scope is tied to the scope of the memvar. Which sounds like it's private to the button click method, so when the method ends bye bye memvar, and thus bye bye form.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform