A method procedure is a sequence of ViviFire statements between the lines
The Method procedure performs a task, then returns control to the calling code (known as the "caller"). When it returns, the procedure returns a value to the caller.
Each time code calls the procedure, its statements execute.
Execution starts with the first executable statement after the line
Execution usually continues until the line
But one of two statements can stop it:
Exit Method or
You can define method procedures in modules, classes, objects, and traits. It is public, meaning that it can be called from any other code.
A method procedure can use arguments, such as constants, variables, or expressions, which the caller passes to it.
The usual syntax for a Method procedure follows:
[ modifier ] Method method_name [ parameter_list ] ' statements End Method
The modifier lets you know if the method is abstract or open. See Method Statement for more information.
You define the parameter list the same as you do for Sub Procedures.