TDoubleList.Floats
| TDoubleList = class (TObject) | Interface de TDoubleList | Exemples de TDoubleList |
Accès indexé aux éléments de la liste
Syntaxe
property Floats[idx: Integer]: Float read GetFloat write SetFloat; default;
idx: index
Remarques
Les index vont de zero à Count-1.
Exemples
var dl := new TDoubleList;
dl.Add(1);
PrintLn(dl[0]); // 1
dl[0] := 2;
PrintLn(dl[0]); // 2
dl.Add(1);
PrintLn(dl[0]); // 1
dl[0] := 2;
PrintLn(dl[0]); // 2