> In addition to what Andy already told you.
>
> Another way to achieve the same is to call the childform WITH a reference to the form that actually did call it, as in:
>
Do Form ChildForm With Thisform
> In the INIT of the childform I would then put this code
>
LPARAMETER toParentForm
>
> this.AddProperty('oParent', NULL)
>
> if vartype( toParentForm) == "O"
> this.oParent = toParentForm
> endif
>
> If you want a reference to the childform IN the parentform you can do it like:
>
> LOCAL lnNewLen
> If NOT pemstatus( thisform, "aChildArray",5)
> thisform.addproperty("aChildArray[1]")
> endif
>
> lnNewLen = Alen( thisform.aChildArray,1)+1
> dimension thisform.aChildArray[lnNewLen,2]
> Do Form ChildForm With Thisform name thisform.aChildArray[lnNewLen,1]
> thisform.aChildArray[lnNewLen,2] = "MyJustCalledChildForm"
>
>
> The above code should go into the place where you actually call the childform. (Buttonclick or whatever).
> By using the second column you can call multiple childforms and still distinct them from each other, provided you give them separate names of course.
> The above code snippets combined makes it possible for the childform to access aome properties and/or methods on the parentform.
>
>
>
> Boudewijn Lutge®ink
>
http://www.vfpdevelopers-online.com> The attitude of "
An eye for an eye and a tooth for a tooth" will make this world toothless and blind (Gandhi)
In child form init event we are adding a property oParent , When we are coding on dot(.) properties&methods pull down menu opens for selection of that control but in this situation how can we deal ?