Hide Comments
Hide Comments

Comments (0)

Lists the individual genes of a TRSGAGenes object. Use the Items property to iterate through all the genes. Index identifies the index in the range 0 to Count - 1.
 

Namespace: RSGeneticAlgorithm

expandingSyntax

Delphi

public
  property Items[Index: Integer]: TRSGAGene read GetItem write SetItem; default;
 

Parameters

Index

Type: Integer

Property Value

Type: TRSGAGene

expandingExamples

Each gene is an item in the TRSGAGenes collection. So, to access an individual gene description, you use its index, e.g.,

Delphi

begin
   for i := 0 to RSGeneticAlgorithm1.Genes.Count - 1 do
     ListBox1.Items.Add(RSGeneticAlgorithm1.Genes[i].DisplayName );
 end;

expandingSee Also

Comments (0)