PEMSTATUS is also your friend when you're iterating through a controls collection. For example, non-visual controls may not have a Visible property. So you can test for the existence of the PEM before trying to manipulate something that isn't there.
-- rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kurt Wendt Sent: Thursday, June 21, 2012 10:57 AM To: [email protected] Subject: RE: Accessing Form Objects Numerically... <snip> FOR nCnt = 1 TO Thisform.ControlCount Thisform.Controls[nCnt].Visible = .F. ENDFOR _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD0441DE4E95398@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.

