Repeat IdTCPClient1.WriteLn('cv'); // envoi requete if Length(Memo1.Text)>1024 then Memo1.Clear; Memo1.Lines.Add(IdTCPClient1.ReadLn); // réception Screen.Cursor:=crHourGlass; if pos('Number of Calls: ',Memo1.Text)<>0 then begin Form3_connexionIndy.Caption:=copy(Memo1.Text,pos('Number of Calls: ',Memo1.Text)+17,2)+' appel(s) en cours, ' +copy(Memo1.Text,pos('Active: ',Memo1.Text)+8,2)+' actif(s)...'; number_calls:=copy(Memo1.Text,pos('Number of Calls: ',Memo1.Text)+17,1)+' appel(s) en cours...'; active_calls:=copy(Memo1.Text,pos('Active: ',Memo1.Text)+8,1); end; if pos('Call No.',Memo1.Text)<>0 then begin reponse:=copy(Memo1.Text,pos('Call No.',Memo1.Text),1024); // ICI ON BOSSE AVEC UNE PARTIE DU TEXTE DU Memo1 appel.Text:=copy(reponse,pos('Call No.',reponse)-8,14); end; UNTIL (bool=true) or (cancel=true); // on sort
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question