FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem on For Next
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Problem on For Next

Posted: Tue Dec 23, 2014 09:29 PM
I have a cicle
count:= 10
aImage:= array(count)
pressed:= 0

FOR i=1 TO count

@ 10, COL IMAGE aImage[i] SIZE 9, 17 OF oDlg;
FILENAME 'empty.bmp' PIXEL NOBORDER ;
ON CLICK ( pressed := i, myfunction(pressed) )

aImage[i]:bMLeave := { || OnLeave(i) }

col += 9
NEXT i



I must have the value of i for another function but it is allway 11
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: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Problem on For Next

Posted: Wed Dec 24, 2014 06:34 AM

Silvio,

You have tu use a "detached local". Please search on these forums for detached local

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion