I have asmall error for a dialog with Listbox or a dialog with xbrowse
I explain
first I try with Listbox
the final user must click on Hour from 1 to 10 to change the bitmap ( S or N )
if click on first column it must make any opertation
instead the procedure change the variable inserting S or N
@ 1, 6 LISTBOX oLbx FIELDS .....
oLbx:setArray(aData)
oLbx:bLine:={|| { aData[oLbx:nAt,1],;
IF( aData[oLbx:nAt,2]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,3]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,4]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,5]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,6]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,7]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,8]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,9]=='S', oBmpYes, oBmpNo ),;
IF( aData[oLbx:nAt,10]=='S', oBmpYes, oBmpNo),;
IF( aData[oLbx:nAt,11]=='S', oBmpYes, oBmpNo );
} }
How I make to block the first column to change the data ?
Second Try with Xbrowse
I have the same table created with xbrowse
here if I click over the second column ( for make a sample) the procedure change the bitmap into all row and not only on that cell as You can see on this another picture
FOR i := 2 TO LEN(oLbx:aCols)
oCol := oLbx:aCols[ i ]
oCol:AddResource("CHECK2")
oCol:AddResource("CHECK3")
oCol:bBmpData := { || if(aData[oLbx:nArrayAt,2]=="S",1,2)}
oCol:bStrData := {|| NIL }
oCol:bLDClickData := { |r,c,f,o| o:Value := If( o:Value == 'S', 'N', 'S' ) }
NEXT
How I can resolve this problem ?
Someone can help me please ?