Page 1 of 1

incremental search with array

PostPosted: Wed Jan 18, 2023 1:13 pm
by marca
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?

Re: incremental search with array

PostPosted: Thu Jan 19, 2023 12:08 pm
by marca
nobody ?

Mr Rão
Couldn't you help me with that?

Re: incremental search with array

PostPosted: Thu Jan 19, 2023 3:10 pm
by cnavarro
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

Re: incremental search with array

PostPosted: Fri Jan 20, 2023 12:21 pm
by marca
cnavarro
Perfeito. Thanks

Re: incremental search with array

PostPosted: Fri Jan 20, 2023 6:18 pm
by cnavarro
Very good