Fórum fazer a funcao se repetir quando eu quiser #350343
10/12/2007
0
achei uma funcao aqui no forum que retira ´/´ de itens numa listbox... ate ae tudo bem a funcao funciona 100¬ so q eu queria q a funcao repetisse oq ela faz a cada clique q eu desse num botao retirar teria como ?
a funcao eh essa aki
var Np,N,i: Integer; S: string; begin Timer1.Enabled := False; for i:=0 to listbox1.Count - 1 do begin s:=ListBox1.Items.Strings[i]; N := Pos(´=´,S); while N > 0 DO begin NP:=N; N:=posEx(´=´,S,N+1); end; Delete(S,NP+1, MaxInt); ListBox1.Items.Strings[i]:=S;
o topico é esse aqui http://forum.devmedia.com.br/viewtopic.php?t=80554&highlight=
Bertu
Curtir tópico
+ 0Posts
10/12/2007
Facc
var Np,N,i: Integer; S: string; begin Timer1.Enabled := False; for i:=0 to listbox1.Count - 1 do begin s:=ListBox1.Items.Strings[i]; N := Pos(´=´,S); while N > 0 DO begin NP:=N; N:=posEx(´=´,S,N+1); end; Delete(S,NP+1, MaxInt); ListBox1.Items.Strings[i]:=S;
não seria só chamar a função novamente?
Gostei + 0
11/12/2007
Bertu
Gostei + 0
11/12/2007
Crash
t+
Gostei + 0
11/12/2007
Facc
pra repetir o onclick basta colocar NomeBotao.Click
Gostei + 0
11/12/2007
Bertu
alguma ideia ?>
Gostei + 0
11/12/2007
Facc
Eita... desse jeito vão te banir do forum... manera na linguagem...
Gostei + 0
11/12/2007
Joaoshi
while Pos(´/´,sTexto) > 0 do
Delete(sTexto,Pos(´/´,sTexto),1);
Espero ter ajudado.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)