>>>MS should document that GETPEM will return any contained object and not just PEMs. As long as variables are named appropriately GetPEM should be fine.
>>
>>But they did document:) Any contained object is just a member of PEM:)
>
>Hi Cetin
>
>Where does it say that? If I drop a control on a form it doesn't appear as a property of the form, although I can navigate to it via the property sheet. Is that the way to look at it? Whatever is on the property sheet is a PEM? Very confusing!
How do you get a list of PEMs? Use, guess what, a
Members(). More of a clue than an explicit statement... which is probably why we had to wait for Fabio to find this one :).