Ken: In the creatobject line it returns 'class definition frmCoach is not defined'. It must be me... Jack
Jack Skelley Senior Director, Programming/Computer Operations New Jersey Devils (973)757-6164 [email protected] ________________________________________ From: ProfoxTech [[email protected]] on behalf of Ken Dibble [[email protected]] Sent: Thursday, September 19, 2013 8:13 PM To: [email protected] Subject: RE: Getting Data from Another form >Thanks for the help but when I run this: >for each oForm in _vfp.forms > IF LOWER(oForm.Name) = "frmcoach" then > frmCoach.top = 5 > EXIT > ENDIF >endfor >When the frmCoach.top was evaluated it returned frmCoach is not an object >but when I changed it to oForms.top = 5 it did execute and move the form. >In my other systems I say >Public frmCoach >then issue frmCoach.top = 5 from another form with no issues. I can't >figure what is wrong or what could be different. In the FOR EACH oForm scenario, you would want oForm.Top = 5 Consider: Public frmCoach CREATEOBJECT("frmCoach") ... doesn't give you a reference to the form. ofrmCoach = CREATEOBJECT("frmCoach") ofrmCoach.Top = 5 ... would work though. Ken Dibble www.stic-cil.org [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/7d9e7f72b813014c8fd022cf04f820edd4488...@ex08.drdad.thenewarkarena.com ** 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.

