Delphi UUID generator

前端 未结 4 1896
野的像风
野的像风 2021-02-05 00:28

Does Delphi have anything built-in to generate UUIDs?

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 01:01

    Yes TGUID, see this example

    program Guid;
    
    {$APPTYPE CONSOLE}
    
    uses
    SysUtils;
    
    begin
      WriteLn(TGUID.NewGuid.ToString());
    end.
    

提交回复
热议问题