>>>>>>>>How can I tell if an object is a container?
>>>>>>>
>>>>>>>The Baseclass = 'Container'?
>>>>>>
>>>>>>more specifically -- can anything other than a container, page (in pageframe) and form be a container?
>>>>>
>>>>>OIC - Well, how about columns, formsets, toolbars, control objects?
>>>>
>>>>so knowledge only, no property or class designation (unless I want to add it)?
>>>
>>>As far as I know...
>>
>>thanks.
>
>If the object has a .ControlCount property, it is a container.
>
>
>IF PEMSTATUS(_SCREEN.ActiveForm, 'ControlCount', 5)
> Object is a container
>ENDIF
>
>
>HTH
What about PageFrames (PageCount) or FormSets (FormCount)? They are both containers.
Just my $0.02
Rex
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement