tof62bis
Messages postés25Date d'inscriptionsamedi 17 novembre 2007StatutMembreDernière intervention 4 mars 2011
-
3 avril 2009 à 13:35
tof62bis
Messages postés25Date d'inscriptionsamedi 17 novembre 2007StatutMembreDernière intervention 4 mars 2011
-
5 avril 2009 à 12:32
Bonjour a tous,
J'ai besoin d'un coup de main
Voila je recupere dans un memo 40 ligne d'une discutions dans un chat
et jaimerai savoir comment recuper dans un autre memo toutes les lignes commencant
par exemple : friend Gerard
tof62bis
Messages postés25Date d'inscriptionsamedi 17 novembre 2007StatutMembreDernière intervention 4 mars 2011 5 avril 2009 à 12:32
Bonjour
C'est bon j'ai trouvé comment faire
voici la source si ca peut aider quelqu'un d'autre
et encore merci de votre aide
listbox1.items.Clear;
detectOwner := false;
for i := recuproom.Lines.Count-1 downto 0 do
begin
if pos('owner ',recuproom.Lines.Strings[i])=1 then
begin
detectOwner := true;
if (pos(Edit1.Text,recuproom.Lines.Strings[i])=0) and
(pos(Edit2.Text,recuproom.Lines.Strings[i])=0) and
(pos(Edit3.Text,recuproom.Lines.Strings[i])=0) and
(pos(Edit4.Text,recuproom.Lines.Strings[i])=0) and
(pos(Edit5.Text,recuproom.Lines.Strings[i])=0) then
begin
ListBox1.Items.add('/oplist remove '+copy(recuproom.Lines.Strings[i],6,length(recuproom.Lines.Strings[i])));
end;
end
else if detectOwner and (pos('owner ',recuproom.Lines.Strings[i])=0) then
break;
end;
tof62bis
Messages postés25Date d'inscriptionsamedi 17 novembre 2007StatutMembreDernière intervention 4 mars 2011 4 avril 2009 à 19:39
bonjour
Merci de m'avoir répondu si rapidement
mais je me suis mal exprimé
je recupere dans un memo les 40 dernieres lignes d'un chat
et je voudrez recuperer toute les ligne commencent par
owner (et le pseudo)
dans la liste a recuperer il peut y avoir jusqu'a 40 pseudo different
et ce sont les pseudo que je veu recuperer
Voila et excusé moi pour le premier post ci dessus