help for creating a class

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

help for creating a class

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: help for creating a class

Post by ukoenig »

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

Re: help for creating a class

Post by Silvio.Falconi »

no good
aElementi[n] are xmages
it not found Move or setpos method
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: help for creating a class

Post by cnavarro »

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)
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: help for creating a class

Post by Silvio.Falconi »

of course
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply