Methods

<< Click to Display Table of Contents >>

 

Methods

Methods are procedures that can be executed by objects. For example, a Screen object contains a method to add objects to it (AddObject) and another one to close it (Close). Because they are encapsulated, that is, stored inside objects, a method call must always declare to which object it is referring.

Many pre-defined methods contain parameters, which can (or must) be passed on method's call. To do so, VBScript has a rule that must be obeyed. If a method is used in an attribution, its parameters must be enclosed in parenthesis. All parenthesis used when declaring methods in this Tutorial only serve as an indication to differentiate them from properties. In scripts, users must follow this rule.

AppBrowser

AppBrowser

Was this page useful?