Ailsom F. Heringer (Osklen) wrote: > Foxers, > > I am trying to change the VISIBLE property of a certain form when loading > another one, but VFP says that “Object FRMLISTAPEDIDOS is not found.”. > > > > At the LOAD of FRMPEDIDOS I am sending: > > FRMLISTAPEDIDOS.VISIBLE = .F. > > > > Is FRMLISTAPEDIDOS the form that calls FRMPEDIDOS? Look to take care of this in the INIT event, passing the calling form as a parameter.
Form.Init: lparameter toCallingForm toCallingForm.visible = .F. Personally, I like objects to handle their own UI changes and not be manipulated from other objects. Been there, done that, took the Excedrin constantly to get through the code. -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

