Page 1 of 1

add one method

Posted: Mon Apr 15, 2019 8:08 am
by Silvio.Falconi
to modify a method of a class we use OVERRIDE METHOD
but if I wish add a method "on line" on a class How I can make ?

Re: add one method

Posted: Wed Apr 17, 2019 2:10 am
by rhlawek
EXTEND CLASS <ClassName> WITH [MESSAGE <MessageName>] METHOD <FunctionName>
EXTEND CLASS <ClassName> WITH MESSAGE <MessageName> INLINE <expression>
EXTEND CLASS <ClassName> WITH DATA <MemberName> [PERSISTENT]

Re: add one method

Posted: Wed Apr 17, 2019 7:33 am
by Silvio.Falconi
what mean for MessageName
I must add a new function to a class
EXTEND CLASS TXXX WITH [MESSAGE <MessageName>] METHOD Myfunction()

Re: add one method

Posted: Wed Apr 17, 2019 9:00 pm
by rhlawek
Search in the FWH spanish forum, there are a number of examples to find there.