FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour 驴C贸mo cambiar index con tsbrowse?
Posts: 57
Joined: Tue Nov 04, 2008 02:08 PM
驴C贸mo cambiar index con tsbrowse?
Posted: Tue Aug 04, 2009 04:16 PM

Hola amigos del foro, nuevamente me acerco a ustedes a ver si me pueden ayudar un poco.

Tengo una tabla con 5 indices, y necesito alternarlos pinchando el "Header" del campo en una TSBrowse...

A quien me pueda ayudar en este tema, le estar茅 muy agradecido.

Quiero hacer facturaci贸n electr贸nica...



Leon Valenzuela.

Santiago - Chile.
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: 驴C贸mo cambiar index con tsbrowse?
Posted: Tue Aug 04, 2009 06:54 PM
Hola Le贸n:
Leon Valenzuela wrote:Tengo una tabla con 5 indices, y necesito alternarlos pinchando el "Header" del campo en una TSBrowse...

Al definir las columnas cuyos datos controlan los 铆ndices, usa la cl谩usula ORDER <cNombre_del_indice>.

Ejemplo:

ADD COLUMN TO oBrw DATA MiDbf'->Codigo TITLE "C贸digo" ORDER "Codigo"
ADD COLUMN TO oBrw DATA MiDbf'->Nombre TITLE "Nombre" ORDER "Nombre"

Un abrazo.

Manuel Mercado
manuelmercado at prodigy dot net dot mx
Posts: 57
Joined: Tue Nov 04, 2008 02:08 PM
Re: 驴C贸mo cambiar index con tsbrowse?
Posted: Tue Aug 04, 2009 10:23 PM

Manuel, usted como siempre no me defrauda, muchas gracias MAESTRO.

Un Abrazo.

Quiero hacer facturaci贸n electr贸nica...



Leon Valenzuela.

Santiago - Chile.
Posts: 57
Joined: Tue Nov 04, 2008 02:08 PM
Re: 驴C贸mo cambiar index con tsbrowse?
Posted: Wed Aug 05, 2009 07:02 PM
Con un s贸lo index me result贸 bien, pero cuando agregu茅 m谩s indices, me arroja el siguiente error...


Code (fw): Select all Collapse
===========
   Path and name: D:\FWH\Bakery\WCCCLi.exe (32 bits)
   Size: 4,329,984 bytes
   Time from start: 0 hours 4 mins 4 secs 
   Error occurred at: 04/08/2009, 19:28:34
   Error description: Error BASE/1132  Bound error: array access
   Args:
     [   1] = A   { ... }
     [   2] = N   9

Stack Calls
===========
   Called from:  => TSBROWSE:GOEND(4687)
   Called from:  => TSBROWSE:KEYDOWN(5670)
   Called from:  => TWINDOW:HANDLEEVENT(0)
   Called from:  => TCONTROL:HANDLEEVENT(0)
   Called from:  => TSBROWSE:HANDLEEVENT(6412)
   Called from: .\source\classes\WINDOW.PRG => _FWH(0)
   Called from:  => DIALOGBOX(0)
   Called from:  => TDIALOG:ACTIVATE(0)
   Called from: .\CTACLI.PRG => CTA_CTE(347)
   Called from: .\CTACLI.PRG => (b)SELECCTION(216)
   Called from:  => TSBROWSE:LDBLCLICK(6154)
   Called from:  => TWINDOW:HANDLEEVENT(0)
   Called from:  => TCONTROL:HANDLEEVENT(0)
   Called from:  => TSBROWSE:HANDLEEVENT(6412)
   Called from: .\source\classes\WINDOW.PRG => _FWH(0)
   Called from:  => WINRUN(0)
   Called from:  => TMDIFRAME:ACTIVATE(0)
   Called from: .\WCCCLI.PRG => MAIN(519)


Por qu茅?, no lo s茅...
Quiero hacer facturaci贸n electr贸nica...



Leon Valenzuela.

Santiago - Chile.

Continue the discussion