>
>If the object has a .ControlCount property, it is a container.
>
>
>IF PEMSTATUS(_SCREEN.ActiveForm, 'ControlCount', 5)
> Object is a container
>ENDIF
>
>
>HTH
Colin,
Your test fails to recognize formsets, pageframes and grids. They don't have a controlcount property, but they are containers.
The full list of containers is;
Form
FormSet
PageFrame
Page
Grid
Column
Container
Custom
Control
CommandGroup
OptionGroup
Toolbar
Some of them are specialized containers in that they are limited in what they may contain.