On 9/20/2013 9:57 AM, Richard Kaye wrote:
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


Just keep in mind that because of the LOWER() function, you'd need to check against txtfirstname and txtlastname (no capital letters). Also, you'd want to reference oControl instead of oTextbox. :-)


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