Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a container?
Message
From
20/07/1998 13:47:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00119295
Message ID:
00119371
Views:
18
>How can I tell if an object is a container?
Hi Dave,
Sorry for my prev. reply. My hemisphere missed the proposition. All I could got w/o intentionally checking pemstatus and baseclasses, using amembers()+ascan(). Of course this one also doesn't help if a container has no objects contained.
lParameters oObject
nMembers = amembers(aDummy,oObject,1)
for ix= 1 to nMembers
    if aDummy[ix,2] = "Object"
       return .t.
    endif
endfor
return .f.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform