getGuid()

function GetGUID: string;
var
  LTep: TGUID;
begin
  CreateGUID(LTep);
  Result := GUIDToString(LTep);
  Result := StringReplace(Result,'}','',[rfReplaceAll]);
  Result := StringReplace(Result,'{','',[rfReplaceAll]);
  Result := StringReplace(Result,'-','',[rfReplaceAll]);
end;

posted @ 2015-10-17 08:07  delphi中间件  阅读(1464)  评论(0编辑  收藏  举报