CitectVBA Programming Reference > Understanding CitectVBA Language Basics > OLE Services > What is a method?

What is a method?

A method is an action that an object can perform. For example, just as a Word document can be printed, the Document object has a PrintOut method. Methods often have arguments that qualify how the action is performed. The following example prints the first three pages of the active Word document.

objWordApp.ActiveDocument.PrintOut From:=1, To:=3

In most cases, methods are actions and properties are qualities. Using a method causes something to happen to an object, while using a property returns information about the object or it causes a quality about the object to change.