Ver Mensaje Individual
  #2279  
Antiguo 26-07-2017
PepCat PepCat is offline
Miembro
 
Registrado: mar 2017
Posts: 96
Reputación: 8
PepCat Va por buen camino
Cita:
Empezado por mrobles Ver Mensaje
La cosa es, ¿hay alguna metodología para "inventarse" ese número?
¿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;
Responder Con Cita