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