FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour help for creating a class
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
help for creating a class
Posted: Tue Aug 27, 2019 04: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 March-April 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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: help for creating a class
Posted: Tue Aug 27, 2019 04: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 :-)
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.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: help for creating a class
Posted: Tue Aug 27, 2019 05: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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: help for creating a class
Posted: Tue Aug 27, 2019 08: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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: help for creating a class
Posted: Wed Aug 28, 2019 03:59 AM

of course

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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

Continue the discussion