I am trying to learn about Generics in Delphi but have a very basic problem with TList.
I have successfully created a list integers and filled it with 1000 odd numbers. I want to change every number on the list that is divisible by 3 to 0. I thought that I could do something like this.
For I in Mylist Do
Begin
If (I mod 3)= 0 Then
I:=0;
End;
This clearly does not work so I would appreciate someone explaining what will.