Delphi ActiveX
Delphi ActiveX
Generate UUID
See more Encryption Examples
Demonstrates how to generate a random UUID string (also known as GUID) having the standard UUID format such as "de305d54-75b4-431b-adb2-eb6b9e546014".Chilkat Delphi ActiveX Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
crypt: TChilkatCrypt2;
uuid: WideString;
begin
crypt := TChilkatCrypt2.Create(Self);
uuid := crypt.GenerateUuid();
Memo1.Lines.Add(uuid);
end;