I stuck on little problem with codeblocks for array browsing. I have an array browser where I want to mark lines. But when I change the check value of one line, in the browser all elements are displayed as marked or unmarked. When checking the array the values are ok, only the browser displays the wrong values. Have also tried to put the codeblock in a separate function, the same result.
Code: Select all
@ 2,0 dcbrowse oBrowse size 100,30 data aFields POINTER nPointer ...
DCBROWSECOL DATA {||iif(aFields[nPointer,1],"ok"," ")} WIDTH 1 PARENT oBrowse HEADER "Sel"
...
@ 33,_col() DCPUSHBUTTON CAPTION "F3=Mark" SIZE 15,1.5 ACTION {||aFields[nPointer,1] := !aFields[nPointer,1],dc_getrefresh(oBrowse)}
Rudolf