incremental search with array

incremental search with array

Postby marca » Wed Jan 18, 2023 1: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?
marca
 
Posts: 116
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil

Re: incremental search with array

Postby marca » 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
marca
 
Posts: 116
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil

Re: incremental search with array

Postby cnavarro » Thu Jan 19, 2023 3: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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: incremental search with array

Postby marca » 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
marca
 
Posts: 116
Joined: Mon Aug 13, 2007 5:22 pm
Location: Brazil

Re: incremental search with array

Postby cnavarro » Fri Jan 20, 2023 6: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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 63 guests