Francisco,
Todo bien, hasta esta parte del codigo:
- Code: Select all Expand view
XBROWSER aQueryToExcel TITLE cTitle ;
SETUP ( oBrw:cHeaders := aTitCols)
Pero al poner todo el codigo, donde se quiere ocultar los botones, me arroja error
- Code: Select all Expand view
XBROWSER aQueryToExcel TITLE cTitle ;
SETUP ( oBrw:cHeaders := aTitCols,;
oBrw:oWnd:bInit := { |oDlg| oDlg:aControls[ 5 ]:Hide() ,; //ocultar botones
oDlg:aControls[ 6 ]:Hide() ,;
oDlg:aControls[ 7 ]:Hide() } )
Application
===========
Path and name: C:\Cuentas32\Cuentas32.exe (32 bits)
Size: 5,436,416 bytes
Compiler version: Harbour 3.2.0dev (r2104281802)
FiveWin version: FWH 19.06
C compiler version: Borland/Embarcadero C++ 7.4 (32-bit)
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 15 secs
Error occurred at: 15/08/2023, 19:23:29
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... } length: 2
[ 2] = N 5
Stack Calls
===========
Called from: => (b)EVAL( 26 )
Called from: .\source\function\XBROWSER.PRG => FITSIZES( 301 )
Called from: .\source\function\XBROWSER.PRG => (b)XBROWSE( 250 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 864 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 1120 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 304 )
Called from: .\source\function\XBROWSER.PRG => XBROWSE( 278 )
Called from: Prg\ExportToExcel.PRG => FNCT_EXPORTTOEXCEL( 26 )
Called from: Prg\Facturas.PRG => (b)FNCT_FACTURAS( 280 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK( 704 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 990 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1791 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 2030 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3546 )
Called from: => DIALOGBOX( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 304 )
Called from: Prg\Facturas.PRG => FNCT_FACTURAS( 284 )
Called from: Prg\Menus.PRG => (b)FBARRADEBOTONES( 534 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK( 704 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 990 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1791 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 2030 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3546 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1078 )
Called from: Prg\Cuentas32.PRG => CUENTAS32( 499 )