add one method

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

add one method

Post 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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
rhlawek
Posts: 165
Joined: Sun Jul 22, 2012 7:01 pm

Re: add one method

Post 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]
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: add one method

Post by Silvio.Falconi »

what mean for MessageName
I must add a new function to a class
EXTEND CLASS TXXX WITH [MESSAGE <MessageName>] METHOD Myfunction()
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
rhlawek
Posts: 165
Joined: Sun Jul 22, 2012 7:01 pm

Re: add one method

Post by rhlawek »

Search in the FWH spanish forum, there are a number of examples to find there.
Post Reply