Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenModalForm parameters
Message
From
16/10/2002 15:13:05
 
 
To
16/10/2002 14:13:54
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00711542
Message ID:
00711913
Views:
12
Hi Michael:

>I'm trying to instantiate a frmModalDataChild form using the parent forms OpenModalForm method.

First, you dont need to call this type of form using the form's OpenModalForm method. The form class you are calling is modal by default. You can call this type of form like so :-
do form CrystalView.scx with loReport
>The init of the child form already has a lparameter statement with oCaller.

This parameter is now obsolete. A reference to the calling form is now established in the child form's load method. So, you can use the oCaller parameter to accept the object reference to your Crystal Report Object. You could also have added a second parameter to the child form's Init but as the default parameter isn't used anymore, you may as well take advantage of it.

In the frmModalDataChild's Init, immediately assign the value of the oCaller parameter to whatever property you have in the form that contains your Crystal Object reference. Say you have in your frmModalDataChild, a property called "oCrystal", do the following :-
frmModalDataChild.Init
lparameter oCaller
thisform.oCrystal = m.oCaller
From there on in, in your modal form, you just reference your Crystal Object using the form's oCrystal property.

If you are still unsure what I mean, get back to me and we will take it a step at a time.

HTH

Best
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform