FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour incremental search with array
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
incremental search with array
Posted: Wed Jan 18, 2023 01:13 PM

Good morning everyone.

In xbrowse incremental search with array I can't get the customer's name if it starts with *

Ex: * JOAO he disregards *

Is there any way to resolve this?

Marcelo Ferro da Silveira

Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8

SqlLib /xMate/WS
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
Re: incremental search with array
Posted: Thu Jan 19, 2023 12:08 PM

nobody ?

Mr Rão

Couldn't you help me with that?

Marcelo Ferro da Silveira

Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8

SqlLib /xMate/WS
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: incremental search with array
Posted: Thu Jan 19, 2023 03:10 PM
marca wrote:Good morning everyone.
In xbrowse incremental search with array I can't get the customer's name if it starts with *
Ex: * JOAO he disregards *
Is there any way to resolve this?
Una posible solucion es la siguiente:
Crea una CLASSDATA lAllowAsterics INIT .F. en la clase
y en la linea 3867, sustituye
elseIf nKey > 31 .and. nKey != Asc( '*' ) .and. nKey != Asc( '?' )
por
elseIf nKey > 31 .and. ( nKey != Asc( '*' ) .or. ::lAllowAsterics ) .and. nKey != Asc( '?' )
Al comienzo de tu aplicacion, setea
TXBrowse():lAllowAsterics := .T.
Try and tell me if it works for you
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 117
Joined: Mon Aug 13, 2007 05:22 PM
Re: incremental search with array
Posted: Fri Jan 20, 2023 12:21 PM

cnavarro

Perfeito. Thanks

Marcelo Ferro da Silveira

Fwh14.04/xHarbour 1.2.3 Simplex / Bcc582 / Pelles 8

SqlLib /xMate/WS
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: incremental search with array
Posted: Fri Jan 20, 2023 06:18 PM

Very good

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion