Pros and Cons of Intercomponent Calls

This chapter has focused on many aspects of intercomponent calls. We have talked about using CREATE and CreateInstance and how they differ. The problem now is how to determine whether to use an intercomponent call or simply create an NVO object. Unfortunately, there is no hard-and-fast rule; there are pros and cons to each approach.

When you develop a system using components, it's easy for other components to reuse the logic via intercomponent calls. If the logic is in a PowerBuilder class object, only PowerBuilder can access the logic. A major advantage of intercomponent calls is that if a component is working correctly, it works correctly everywhere; if it's not working correctly, it can be recoded and ...

Get PowerBuilder® 9: Internet and Distributed Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.