Well, it's more of a conceptual thing I was trying to point out; not every VFP object has every possible VFP property, method or event. Both the PEMSTATUS and GETPEM functions can be quite useful. If all you're manipulating is the visible property and you don't have anything other than text boxes and labels, you don't have to worry about this.
-- rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kurt Wendt Sent: Thursday, June 21, 2012 11:10 AM To: [email protected] Subject: RE: Accessing Form Objects Numerically... What kind of Non-Visual control? You mean - like a Timer object? But, on this form - it will all be standard stuff, labels, text boxes, buttons and a Grid. All standard Visual controls, which will of course all have a Visible property. Again - I'm just trying to keep along the lines of the KISS rule... -K- -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Richard Kaye Sent: Thursday, June 21, 2012 11:08 AM 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 [excessive quoting removed by server] _______________________________________________ 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/DF1EEF11E586A64FB54A97F22A8BD0441DE4E953A9@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.

