by Silvio » Thu Mar 11, 2010 8:10 am
Now I try with
oCol:= oApp():oGrid:AddCol()
oCol:cHeader := ""
oCol:bEditValue := { || (oDTab)->BITMAP }
oCol:cDataType := 'F'
oCol:bLDClickData := { || If( ! Empty( cBmp := cGetFile( "(*.bmp)|*.bmp|" ) ), ;
(oDTab)->BITMAP := cBmp, ) }
Now I see the xbrowse but on this column I cannot see the button
I doubleclick on a record and it select a new bitmap
when I select a new bitmap it make this error
Application
===========
Path and name: C:\work\VDSWIN\VDSWIN.Exe (32 bits)
Size: 3,152,896 bytes
Time from start: 0 hours 0 mins 48 secs
Error occurred at: 11/03/2010, 09:07:53
Error description: Error DBFCDX/1022 Lock required
Args:
Stack Calls
===========
Called from: source\VDS550.PRG => (b)VDS550(123)
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:LDBLCLICK(3355)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469)
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT(10158)
Called from: .\source\classes\WINDOW.PRG => _FWH(3347)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(966)
Called from: source\VDSWIN.prg => TAPPLICATION:ACTIVATE(319)
Called from: source\VDSWIN.prg => MAIN(69)
Best Regards, Saludos
Falconi Silvio