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