Ver Mensaje Individual
  #2  
Antiguo 26-08-2005
Avatar de dec
dec dec is offline
Moderador
 
Registrado: dic 2004
Ubicación: Alcobendas, Madrid, España
Posts: 13.107
Reputación: 34
dec Tiene un aura espectaculardec Tiene un aura espectacular
Hola,

Código Delphi [-]
 var
   i: integer;
   cadena: string;
   total: integer;
 begin
   total := 0;
   cadena := 'Bienvenido al ClubDelphi';
   for i := 0 to Length(cadena) do
     total := total + Ord(cadena[i]);
   ShowMessage(IntToStr(total));
 end;
__________________
David Esperalta
www.decsoftutils.com
Responder Con Cita