Ver Mensaje Individual
  #6  
Antiguo 31-07-2007
Avatar de Delphius
[Delphius] Delphius is offline
Miembro Premium
 
Registrado: jul 2004
Ubicación: Salta, Argentina
Posts: 5.582
Reputación: 25
Delphius Va camino a la fama
No la he probado... yo me estoy imaginando algo como esto:


EDITO:

Código Delphi [-]
function TForm1.AnnoALetra(Anno: integer): string;
const
 LETRAS = 'KLMNPRSTVXZABCDEFHJ';
var dif: integer;
begin
 dif := Anno mod  2000; //2000 es el primer año a contabilizar
 id Dif = 0
   then Dif = 1;
 result := LETRAS[(dif div Length(LETRAS))];
end;

Ahora si debería andar.
Saludos,
__________________
Delphius
[Guia de estilo][Buscar]

Última edición por Delphius fecha: 31-07-2007 a las 19:34:58.
Responder Con Cita