add one method

add one method

Postby Silvio.Falconi » Mon Apr 15, 2019 8:08 am

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 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: add one method

Postby rhlawek » Wed Apr 17, 2019 2:10 am

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
rhlawek
 
Posts: 194
Joined: Sun Jul 22, 2012 7:01 pm

Re: add one method

Postby Silvio.Falconi » Wed Apr 17, 2019 7:33 am

what mean for MessageName
I must add a new function to a class
EXTEND CLASS TXXX WITH [MESSAGE <MessageName>] METHOD Myfunction()
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: add one method

Postby rhlawek » Wed Apr 17, 2019 9:00 pm

Search in the FWH spanish forum, there are a number of examples to find there.
User avatar
rhlawek
 
Posts: 194
Joined: Sun Jul 22, 2012 7:01 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 32 guests