Tema: IndexOf
Ver Mensaje Individual
  #5  
Antiguo 16-11-2017
Javier13 Javier13 is offline
Miembro
NULL
 
Registrado: jun 2017
Posts: 34
Reputación: 0
Javier13 Va por buen camino
Mi código es este

Código Delphi [-]
var
  alfabeto : String;//TStringList;
  maximo : Integer;
  valor : Integer;
begin

  alfabeto:='0123456789abcdefghijklmnñopqrstuvwxyz';
  maximo:=Length(alfabeto);
  valor:=alfabeto.IndexOf(digito);

Quiero hacer 3 cosas
1.- es hacer el abecedario
2.- cuantos caracteres tiene el abecedario
3.- saber el índice del abecedario
El 3 es el que no me sale
y para saber el indice tienes que usar TStringList para usar IndexOf
Responder Con Cita