Navigation: Code Documentation > GeneticAlgorithm > RSGenerics.GeneticProgramEngine > Classes > TRSGPInstructions<T> > Methods
TRSGPInstructions<T>.IndexOf(String) Method
Returns the index of the instruction with the specified Name. If no instruction exists with that name, the function returns -1.
Namespace: RSGenerics.GeneticProgramEngine
Delphi
public function IndexOf( const Name: String ): Integer;
Parameters
Name
Type: String
Type: Integer
•RSGenerics.GeneticProgramEngine.TRSGPInstruction<T>.Name
•RSGenerics.GeneticProgramEngine.TRSGPInstructions<T>.FindItemName(String)
•RSGenerics.GeneticProgramEngine.TRSGPInstructions<T>.Items[Integer]
•TRSGPInstructions<T>
•RSGenerics.GeneticProgramEngine