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_NAMEfmet 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 instanceLocal Instance MYCUSTOMER Using C_CUSTOMERMYCUSTOMER=NewInst [CUST] With C_CUSTOMER# Load the customer record with the standard AREAD methodERR= fmet MYCUSTOMER.AREAD(MYSORDER.CUSTOMER)If Not ERR# The customer exists...Endif