FIXED !! Error xbrowse PostMessage( ::oEditGet:hWnd, ...
Posted: Mon Aug 31, 2020 4:50 pm
quiero usar la funcion popupBrowse en una columna de xBrowse de esta forma :
Pero me genera el siguiente error, cuando presiono cualquier tecla en TGET de la columna 'Descripcion' :
[img]
https://postimg.cc/Ny7PN0DT
[/img]
Code: Select all
WITH OBJECT :Descripcion
:nEditType = if(::lNueva, EDIT_GET, EDIT_NONE)
:cEditPicture = "@!"
:bkeyChar = {|k,f,b,o| ::BuscaDescripcion(k,b,o)}
END
...
METHOD BuscaDescripcion(k,b,o) CLASS TFactuVenta
Local aValue := { {"A0001", "Pollo en Brasa"},;
{"A0002", "Combo me lo llevo"},;
{"A0003", "Pepsi Cola"},;
{"B0001", "Helado de Fresa"},;
{"B0002", "Banana Split"},;
{"C0001", "Ensalada Cole Slaw"},;
{"C0002", "Ensalada Pasta con Pollo"},;
{"C0003", "Racion Papas Fritas"},;
{"D0001", "Cola Cola Ligth"} }
o:Edit( k )
PopupBrowse( aValue, o:oEditGet, Nil, 2 )
if o:oEditGet != Nil
o:oEditGet:End()
endif
Return Nil
Code: Select all
Time from start: 0 hours 0 mins 9 secs
Error occurred at: 31/08/2020, 12:46:40
Error description: Error BASE/1004 No existe el método: HWND
Args:
[ 1] = U
Stack Calls
===========
Called from: => HWND( 0 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:EDIT( 15100 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:KEYCHAR( 3599 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1827 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT( 11276 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3559 )
Called from: => DIALOGBOX( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 304 )
Called from: D:\PROYEC~2\Software\ADMINI~2\Source\venfactu.prg => TFACTUVENTA:DIALOGOFACTURA( 811 )
https://postimg.cc/Ny7PN0DT
[/img]