Good Evening Mike:
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.
Best regards,

Jack


Jack Skelley
Senior Director, Programming/Computer Operations
New Jersey Devils
(973)757-6164
[email protected] ________________________________________
From: ProfoxTech [[email protected]] on behalf of MB Software 
Solutions, LLC [[email protected]]
Sent: Thursday, September 19, 2013 5:25 PM
To: [email protected]
Subject: Re: Getting Data from Another form

On 9/19/2013 5:08 PM, Jack Skelley wrote:
> Good Afternoon All
> I have done this before and can't get it to work now.
> I have a modeless form as a top level form and run the next form. Now I want 
> to get data from the top level form on the now modal form and it tells me 
> that the modeless form name is not an object.
> On the modal form:
> lnForm_top = frmModeless.top
> and it says that frmModeless is not an object.
> But wexist('frmModeless') returns true...
> What am I doing wrong? I have checked other instances of this in other 
> systems and it works perfectly. I just can't see any differences...
> Thnaks!
> Jack

Just a quick work-around:

for each oForm in _vfp.forms
   if oForm.Name = "TheOneIWant" then && there you go
     MyValue = oForm.WhateverPropertyYouWant
     exit && assuming you got the form you wanted and don't care about
the rest
   endif
endfor



--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

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

Reply via email to