HI Jack,

If it wasn't 100% clear from some of the earlier posts, you need to refer to 
the memvar created by the FOR...ENDFOR loop whilst inside the loop and not the 
explicit reference to the one form you want to manipulate. For example, let's 
say you wanted to retrieve the values of certain textbox controls in a single 
form you could do something like this:

myvar=[]
for each oControl in myform.controls
 if INLIST(LOWER(oControl.Name),[txtFirstname],[txtLastname])
  myvar=myvar+[,]+oTextbox.value
 endif
endfor

--
rk

-----Original Message-----
From: ProfoxTech [mailto:[email protected]] On Behalf Of Jack Skelley
Sent: Friday, September 20, 2013 9:33 AM
To: [email protected]
Subject: RE: Getting Data from Another form

Ken:
In the creatobject line it returns 'class definition frmCoach is not defined'.
It must be me...
Jack

>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


_______________________________________________
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/DF1EEF11E586A64FB54A97F22A8BD044228CAB2EB4@ACKBWDDQH1.artfact.local
** 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