Fórum Pesquisa de Texto por Letra em TstringList (Filtro) #344583
16/08/2007
0
Ola amigos preciso pesquisa numa stringList palavras comercadas por VAP ?
Na rotina abaixo faço uma pesquisa por palavra, existe uma forma de fazer a pesquisa parcial, comerçadas por uma palvra ou letra ?
abs
Na rotina abaixo faço uma pesquisa por palavra, existe uma forma de fazer a pesquisa parcial, comerçadas por uma palvra ou letra ?
procedure TForm1.Button1Click(Sender: TObject); Var Lista: TStringList; begin Lista := TStringList.Create; try Lista.Add(´Linux Baby´); Lista.Add(´Delphi´); Lista.Add(´Power by Delphi´); if Lista.IndexOf(´Linux Baby´) > -1 then //if Lista.IndexOf(´xxx´) > -1 then ShowMessage(´Resultado Encontrado.´) else ShowMessage(´Nenhum resultado Encontrado.´) finally Lista.Free end; end;
abs
Firekiller_am
Curtir tópico
+ 0
Responder
Posts
16/08/2007
Firekiller_am
Ola amigos poster resolvido aqui
http://www.activedelphi.com.br/forum/viewtopic.php?p=195340#195340
abs
http://www.activedelphi.com.br/forum/viewtopic.php?p=195340#195340
abs
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)