Reply To: Exemple Code

Home Forums CodeSite Exemple Code Reply To: Exemple Code

#1429
Ray Konopka
Keymaster

    The SendList method is designed to handle generic TList instances. For example,

    uses
    System.Generics.Collections;

    procedure TForm12.RzButton1Click(Sender: TObject);
    var
      IntList: TList<Integer>;
    begin
      IntList := TList<Integer>.Create;
      IntList.Add( 14 );
      IntList.Add( 23 );
      IntList.Add( 58 );
      CodeSite.SendList<Integer>( 'Generic List', IntList );
    end;

    Hope this helps.
    Ray