converting my function into a class

converting my function into a class

Postby Silvio.Falconi » Fri Jan 03, 2020 6:13 pm

on a my function load many images with txImage to move it on a dialog

to move the images ( on my functions ) I use the easy command Move() with no Problems

Code: Select all  Expand view
For n= 1 to nImages
           nLeftImage[n]:=nposition +nBmpWidth
           aElements[n]:Move( nRowScroll,nLeftImage[n],,,.t.)
           aElements[n]:Refresh()
           nposition:= nLeftImage[n]
        next


and the image are showed into dialog with animation


this evening I'm try to converte my functions into a class



the same source but with data

Code: Select all  Expand view
For n= 1 to ::nImages
           ::nLeftImage[n]:=nposition +nBmpWidth
           ::aElements[n]:Move( ::nRowScroll,::nLeftImage[n],,,.t.)
           ::aElements[n]:Refresh()
           nposition:= ::nLeftImage[n]
        next


but I have and error Error description: Error BASE/1004 No exported method: MOVE



I tried also to use

Code: Select all  Expand view
METHOD SetPos( nRow, nCol ) INLINE ::Super:Move( nRow, nCol,,,.t. )


and change the line

Code: Select all  Expand view
 ::aElements[n]:setPos( ::nRowScroll,::nLeftImage[n],,,.t.)


but give me the error

Error description: Error BASE/1004 No exported method: SETPOS

How I can resolve it ?
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: 7053
Joined: Thu Oct 18, 2012 7:17 pm

Re: converting my function into a class

Postby Silvio.Falconi » Sat Jan 04, 2020 12:29 am

ok I resolved
the array is not populate
now I correct it
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: 7053
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Willi Quintana and 118 guests