System.IOUtils.TPath.GetGUIDFileName
Delphi
class function GetGUIDFileName(const UseSeparator: Boolean = False): string; static;
C++
static System::UnicodeString __fastcall GetGUIDFileName(const bool UseSeparator = false);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Generates a new GUID that can be used as a unique file name.
Call GetGUIDFileName to generate a new GUID suitable as a unique name for a file or directory. GetGUIDFileName only generates a file name and does not create a real file.
The following table lists the parameters expected by this method:
Name | Meaning |
---|---|
UseSeparator |
Indicates whether the GUID separator char (the minus sign) is preserved in the generated name. |