Ver Mensaje Individual
  #1  
Antiguo 08-11-2012
webmasterplc webmasterplc is offline
Miembro
 
Registrado: mar 2008
Posts: 275
Reputación: 17
webmasterplc Va por buen camino
Error en Función Encriptar y Desencriptar

Buenas estoy tratando de usar esta función para encriptar y desencriptar datos de una tabla, pero me da un error al compilar
[DCC Error] Unit1.pas(27): E2003 Undeclared identifier: 'Str255'

aca esta el codigo
Código Delphi [-]
Const CRIPTPASSWORD   = 9281711.00;

Var   KeyResult       : String;

Function CriptClave ( Signo:ShortInt;Nombre : Str255; Cripto: Real) : String;
Var L,I: Byte;
  S: String;
  Temp: Array[0..255] Of Byte Absolute Nombre;
Begin
  Str(Trunc(Cripto),S);
  L:=Length(Nombre);
  While Length(S)do
    S:=S+S;
  For I:=1 To L Do
    Temp[i]:=Temp[i] + (Ord(S[i])-48)*SigNo;
  CriptClave:= Nombre;
End { CriptClave };

Última edición por Casimiro Notevi fecha: 08-11-2012 a las 12:05:48.
Responder Con Cita