Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Com object nesting
Message
 
 
To
08/05/2002 11:13:23
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00654027
Message ID:
00654051
Views:
15
>Is there a limit on how deep you can nest object calls? I have an object which calls other objects with no problems but when one of the called objects calls another object I get an error. If I move that object into the first object, it seems to work.

I don't believe there is a hard and fast limit but there may be a limit with respect to performance gains. That said, you should be able to go much further than 2 deep. Take a look at any Office application object model. Ex. Application.ActiveDocument.Paragraphs(1).Range

Can you post an example of how you are creating your object chain?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform