Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveForm is not an object
Message
 
To
18/12/1999 23:52:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00305647
Message ID:
00305795
Views:
28
>Hi,
> Yes, I use this command to verify the _screen.activeform either an object or not. It works fine and not cause VFP Error. However, user will not able to perform task like save, delete and.... from toolbar for the form focused at that moment. User have to terminate the program and run it again. How could I prevent this happen ? I think it is too bad to ask user re-run the application...
>
>Thank you

John,

My form manager knows the currently active form and my toolbars know the form manager. The fomr manager has a property named oForm that is a reference to the currently active form. My toolbars have a property oCreator that refers to the form manager that created them. So thebuttons in the toolbars all say;

This.oCreator.oForm.Whatever

That way the toolbar works for any and every formthat is created.
Previous
Reply
Map
View

Click here to load this message in the networking platform