help for creating a class

help for creating a class

Postby Silvio.Falconi » Tue Aug 27, 2019 4:17 pm

I'm converting a procedure into a class
on a class I cannot use Move function
how I can convert move ()
sample :

For n= 1 to ::nimages
::nLeftImage[n]-= 2
::aElementi[n]:Move( ::nRiga,::nLeftImage[n],,,.t.)
::aElementi[n]:Refresh()
next

any help please
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: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: help for creating a class

Postby ukoenig » Tue Aug 27, 2019 4:59 pm

Silvio,

on a class I cannot use Move function
how I can convert move ()

inside classes :

METHOD SetPos( nRow, nCol ) INLINE ::Move( nRow, nCol )

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: help for creating a class

Postby Silvio.Falconi » Tue Aug 27, 2019 5:52 pm

no good
aElementi[n] are xmages
it not found Move or setpos method
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: 7075
Joined: Thu Oct 18, 2012 7:17 pm

Re: help for creating a class

Postby cnavarro » Tue Aug 27, 2019 8:21 pm

Your class will surely have to define it like this:

CLASS TMyClass FROM TControl (or any class that has the methods and data you need)
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: help for creating a class

Postby Silvio.Falconi » Wed Aug 28, 2019 3:59 am

of course
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: 7075
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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