Fmet
This operator invokes a method on an instance (similar to func). It is used to invoke methods that do return values. For methods that do not return values, use the CallMet instruction.
fmet INST.METHOD_NAME
fmet INST.METHOD_NAME(parameter_list)
# MYSORDER is a sales order instance, with a CUST_CODE property
# C_CUSTOMER is a persistent class
# Declare and instantiate a C_CUSTOMER instance
Local Instance MYCUSTOMER Using C_CUSTOMER
MYCUSTOMER=NewInst [CUST] With C_CUSTOMER
# Load the customer record with the standard AREAD method
ERR= fmet MYCUSTOMER.AREAD(MYSORDER.CUSTOMER)
If Not ERR
# The customer exists...
Endif