Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a container?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00119295
Message ID:
00119357
Views:
20
Telling if an object is a container...

PROCEDURE cont_check
PARAMETER cobject
DO CASE
CASE PEMSTATUS(&cobject.,"Controls",5) ;
OR PEMSTATUS(&cobject.,"Buttons",5) ;
OR PEMSTATUS(&cobject.,"Pages",5) ;
OR PEMSTATUS(&cobject.,"Columns",5)
RETURN .T.
OTHERWISE
RETURN .F.
ENDCASE
EndProc

Of course what you check with pemstatus() is up to you...
Previous
Reply
Map
View

Click here to load this message in the networking platform