>>Hi, I have 2 forms in same time (form1 and form2). In form2 i click in botton to release the form1 example (form1.release) and the message error appears:
>>
>>"Object FORM1 is not found"
>>
>>Please help me
>>
>>thank you all
>
>Form2 needs a reference to Form1 in order to access its Release(). You could store a reference, oForm1 as a property of Form2, then This.oForm1.Release(). The better, OOP-er/OOP-ish, way would be to have a collection (array) of forms used by your application. Then, you would call to the collection to release the form. That way, no form needs to know about any other form. It calls the object responsible for knowing about forms, the collection object.
>
In reference to this idea, this is developed on page 335 - 352 of "1001 Things You Wanted to Know About Visual Foxpro" from Hentzenwerke Publishing ).
www.hentzenwerke.comCode is provided and explained how to do this.
Tommy
Tommy Tillman A+ NetWork+ MCP