Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference to Calling Form
Message
De
23/07/2002 18:33:33
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
23/07/2002 17:45:52
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00681858
Message ID:
00681867
Vues:
12
Tom,

I think you're running into a timing issue. Referencing "ThisForm" before the form has completely Init'd can cause some "weird" anomalies such as you're seeing.

Try reversing your code as follows:
LPARAMETERS toCallingForm

IF !DODEFAULT()
   RETURN .F.
ELSE
   ThisForm.oCallingForm = toCallingForm
ENDIF
Hope that works!
---J

>Hi All - I have a cbizobjnolistmaintform with a button that calls a modal form. I need a reference to the calling form, and have the following code
>
>=DOFORM('lwHouseHoldSetUpForm', ThisForm)
>
>as explained in the developers guide. (Using 6.1.2 with VFP 7.0)
>
>The called modal form, based on cbasemodalform, has the following in its INIT;
>
>LPARAMETERS toCallingForm
>
>ThisForm.oCallingForm = toCallingForm
>
>DODEFAULT()
>
>
>When I check the called form oCallingForm all I see is a repeat of alias() over and over again. There is nothing else in the oCallingForm property of the modal form. Gotta be doing something wrong, but I don't see it.
>
>Thanks for any advice or help. Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform