A method is a procedure or function that is declared inside the Class definition statement and performs an operation, typically on an instance of the class.

DataFlex supports three different kinds of methods.

Procedures perform discrete operations on the object or on behalf of the object. Procedure Set methods perform discrete operations then set some state, or attribute, of the object. Functions perform a discrete operation then return some state, or attribute, of the object.


Class methods are not like the Global Procedures and Functions that are described in Global Procedures and Functions. Global procedures and functions are declared and called differently and are intended for a different purpose than class methods.

Read more about this in these Methods subtopics: