TS:TStringList; begin ..... TS:=TStringList.Create; TS.SetText(pchar('211'^M'311'^M'411')); ...... else if (Ordi.nbLancers<NbTours) and (TS.IndexOf(inttostr(Ordi.Jet))<>-1) then ... Ts.Free; end;
const MonArray:array[1..3]of integer= (211,311,411); begin ...... for i:=1 to 3 do if Ordi.Jet=Monarray[i] then... end;
TS:TStringList; begin ..... TS: =TStringList.Create; TS.SetText(pchar(concat('211',^M,'311',^M,'411'))); ...... else if (Ordi.nbLancers<NbTours) and (TS.IndexOf(inttostr(Ordi.Jet))<>-1) then ... Ts.Free; end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question