Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object MyForm is not found.
Message
 
To
18/04/2000 05:12:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00360757
Message ID:
00360770
Views:
13
Cemal,

First absolutely NO you don't need any public variables.

First the Activate event does NOT activate a form. The Activate is an event that fires automatically when a form is activated, calling it only runs the code it does not make the form active. To actiavte a form you must SetFocus to one of the controls in the form.

As for the name of your form, your form has a name property and there is also an object reference to the form. These are NOT the same thing.
DO FORM MYForm NAME MyForm
Will create a form using the MYForm.scx file and give it an object reference of MyForm.
DO FORM MyForm
Will create a form from the MyForm.scx file and VFP will assign an object reference to it. If all is ok the reference may be MyForm, but then again it may not. Using this syntax you can always refer to the form using the _SCREEN.ActiveForm property when the form is the currently active form or by using _screen.Forms() collection to find the form whose Name property is MyForm.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform