Estamos mudando los antiguos WBROWSE a XBROWSE de FWH 8.12 y XHARBOUR, usamos tablas ADT pero no pudimo hacer andar el XBROWSE el mini codigo a continuación funciona perfecto con tablas DBF pero tira el error mas abajo cuando mostramos una tabla ADT, podrías darnos una mano con esto,
Código de Prueba,
Code: Select all
USE TABLA1 NEW SHARED ALIAS GUSTAVO VIA "ADT"
SELECT GUSTAVO
BROWSE()
DEFINE WINDOW oWSal MDIChild OF oWnd;
TITLE "Salidas"
** Controles ******
DEFINE BUTTONBAR oBar 3DLOOK BUTTONSIZE 34,34 OF oWSal 2007
DEFINE BUTTON oBto1 ;
OF oBar ;
RESOURCE "B_NUEVO" ;
TOOLTIP "Nueva Salida" ;
NOBORDER
@ 0,0 XBROWSE oBrw;
OF oWnd ;
ALIAS "GUSTAVO" AUTOCOLS
oBrw:CreateFromCode()
oWsal:oClient := oBrw
ACTIVATE WINDOW oWSal;
VALID (oWSal:=Nil,.T.)
Application
===========
Path and name: C:\CONTROLV\controlv.exe (32 bits)
Size: 1,937,920 bytes
Time from start: 0 hours 0 mins 4 secs
Error occurred at: 01/30/09, 18:08:24
Error description: Error BASE/1111 Argument error: LEN
Args:
[ 1] = U
Stack Calls
===========
Called from: => LEN(0)
Called from: XBROWSE.prg => SETCOLFROMRDD(5121)
Called from: XBROWSE.prg => TXBROWSE:SETRDD(3194)
Called from: XBROWSE.prg => XBRWSETDATASOURCE(7922)
Called from: XBROWSE.prg => XBROWSENEW(7800)
Called from: controlv.PRG => CON_SALIDAS(254)
Called from: controlv.PRG => (b)BUILDMENU(114)
Called from: .\source\classes\MENU.PRG => TMENU:COMMAND(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND(0)
Called from: .\source\classes\MDIFRAME.PRG => TMDIFRAME:COMMAND(0)
Called from: => TMDIFRAME:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TMDIFRAME:ACTIVATE(0)
Called from: controlv.PRG => MAIN(85)
Desde ya Gracias por tu ayuda,
Saludos,