Ver Mensaje Individual
  #4  
Antiguo 18-04-2007
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Una alternativa:

Código Delphi [-]
function GetCharCode(Ch: Char): Integer;
begin
  if Ch in ['ñ', 'Ñ'] then Dec(Ch);
  Result := ((Ord(UpCase(Ch)) - Ord('A')) mod 9) + 1;
end;
Responder Con Cita