passing a value through a for..next loop
Posted: Thu May 09, 2024 8:25 pm
If I have a loop For ..Next
and on this cicle I have create checkboxes ...and on change I call a function passing the value of n of for..next loop
but the n is allway 3
the problem is n is allways 3 , so how I can make to pass the n different for each checkbox ?
and on this cicle I have create checkboxes ...and on change I call a function passing the value of n of for..next loop
but the n is allway 3
- Code: Select all Expand view
For n= 1 to len(aFilters)
@ nRow, nCol CHECKBOX aCheck[n] VAR aFilters[n][1] ;
PROMPT aFilters[n][2] OF oBox[1] SIZE 150,15 PIXEL;
ON CHANGE Filtrare( n, oBrw, oDbf,oBox )
aCheck[n]:lTransparent:=.t.
ncol+=160
if n=3
exit
endif
Next
the problem is n is allways 3 , so how I can make to pass the n different for each checkbox ?