Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a container?
Message
From
21/07/1998 07:18:40
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00119295
Message ID:
00119634
Views:
25
>>>>>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform