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




_______________________________________________
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/[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.

Reply via email to