Invoking Methods

In addition to getting and setting properties, an object can be manipulated using the methods it supports. Some methods may return a value, as in the following example:

X = ObjVar.Calculate(1,2,3)

Methods that do not return a value behave like subroutines. For example:

' This method requires two arguments.
ObjVar.Move XPos, YPos 

If such a method is assigned to a variable, an error will occur.