Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   OOP (https://www.clubdelphi.com/foros/forumdisplay.php?f=5)
-   -   Calcular Año (condición cíclica) (https://www.clubdelphi.com/foros/showthread.php?t=46419)

delphi.com.ar 02-08-2007 00:37:08

Yo tambien quiero: :p

Código Delphi [-]
const
   LETRAS = 'DEFHJKLMNPRSTVXZABC';
begin
   Result := LETRAS[(MyYear) mod 19 + 1];

Otra aún mas simple:

Código Delphi [-]
const
  LETRAS : array[0..19] of char = 'DEFHJKLMNPRSTVXZABC';
begin
  Result := LETRAS[(MyYear) mod 19];


La franja horaria es GMT +2. Ahora son las 08:53:37.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi