Invoke Methods

Return to Introduction  Previous page  Next page

On the Workbench tab, right-click on the instance on which to execute a method.


Choose Method

A list of methods for the type are presented in a dialog. Select a method from the list. Note that private methods are not available.


Supply Arguments

In this example, we have created an instance or variable named Rob of type MyClassLibrary.CRobert. We now invoke a method named AddFriends, which takes an array of CPerson objects as its only argument. What we supply to it are the two other Workbench instances Fred and John.