>Naomi,
>
> I understand using the loop to force it to work with all underlying objects within objects such as grids and containers. I also see that one of the BaseClass she lists is [form] because basically the form is a container of objects as well, but for some reason it does not force it into the command button objects. I tried adding [commandbutton] and it errors out, but when I do not, it does not force it into the method of command buttons.
>
>
Yes, some classes are missing here
IF INLIST( LOWER( ALLTRIM( toObject.BaseClass ) ), ;
[form], [pageframe], [page], [container], [grid], [column] )
You should also add
IF INLIST( LOWER( ALLTRIM( toObject.BaseClass ) ), ;
[form], [pageframe], [page], [container], [grid], [column],[commandgroup],[optiongroup])
Or alternative check
if pemstatus(toObject, 'Objects',5) && container object
do recursive call
...
If it's not broken, fix it until it is.
My Blog