Page 1 of 1

help for creating a class

Posted: Tue Aug 27, 2019 4:17 pm
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

Re: help for creating a class

Posted: Tue Aug 27, 2019 4:59 pm
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

Re: help for creating a class

Posted: Tue Aug 27, 2019 5:52 pm
by Silvio.Falconi
no good
aElementi[n] are xmages
it not found Move or setpos method

Re: help for creating a class

Posted: Tue Aug 27, 2019 8:21 pm
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)

Re: help for creating a class

Posted: Wed Aug 28, 2019 3:59 am
by Silvio.Falconi
of course