Ver Mensaje Individual
  #2280  
Antiguo 26-07-2017
Avatar de mrobles
mrobles mrobles is offline
Miembro
NULL
 
Registrado: may 2017
Posts: 115
Reputación: 8
mrobles Va por buen camino
Cita:
Empezado por PepCat Ver Mensaje
¿Y crear un GUID?

Código:
uses
  ComObj, ActiveX;

function CreateGuid: string;
var
  ID: TGUID;
begin
  Result := '';
  if CoCreateGuid(ID) = S_OK then
    Result := GUIDToString(ID);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  Edit1.Text := CreateGuid;
end;
Pone que debe ser un numero secuencial, por lo que se descartan UUIDs
Responder Con Cita