Caricamento πŸ‘¨β€πŸ’» .. πŸ“˜ Blog -=Programmazione and Software =- Delphi

-=Programmazione and Software =-

Programmazione software e siti web.

 di  stefanorinaldi

Delphi


πŸ“† 09/03/2014

Delphi rad studio xe5 Android - System.SysUtils


Classes
EAbort EAbort is the exception class for errors that should not display an error message dialog box.
EAbstractError EAbstractError is the exception class for attempts to call an abstract method.
EAccessViolation EAccessViolation is the exception class for invalid memory access errors.
EArgumentException EArgumentException is the exception raised for invalid argument values.
EArgumentNilException This exception is raised when a function argument is nil/NULL.
EArgumentOutOfRangeException EArgumentOutOfRangeException is the exception raised for argument values that exceed an allowed range.
EAssertionFailed EAssertionFailed is the exception class for Delphi assertion failure.
ECFError
EControlC EControlC is the exception class for user interruptions.
EConvertError EConvertError is the exception class for string and object conversion errors.
EDirectoryNotFoundException This exception is raised when a specified directory is not found.
EDivByZero EDivByZero is the exception class for integer divide-by-zero errors.
EEncodingError EEncodingError is the exception class for encoding errors.
EExternal EExternal is the exception class that captures external error information.
EExternalException EExternalException is the exception class for invalid exception codes.
EFileNotFoundException This exception is raised when a file is not found.
EHeapException EHeapException is the exception class for errors related to heap-allocated memory.
EInOutError EInOutError is the exception class for file input/output errors.
EIntError EIntError is the base class for integer math error exceptions.
EIntfCastError EIntfCastError is the exception class for interface casting errors.
EIntOverflow EIntOverflow is the exception class for integer calculations whose results are too large to fit in the allocated register.
EInvalidCast EInvalidCast is an exception class for typecasting errors.
EInvalidContainer Indicates an invalid container.
EInvalidInsert Indicates an invalid insert.
EInvalidOp EInvalidOp is the exception class for undefined or invalid CPU instructions.
EInvalidOpException This exception is raised when an operand is invalid.
EInvalidPointer EInvalidPointer is the exception class for invalid pointer operations.
EListError
EMathError EMathError is the base exception class for floating-point math errors.
EMonitor EMonitor is the base exception class for all monitor related exceptions.
EMonitorLockException EMonitorLockException is the exception raised whenever a thread tries to release the lock on a non-owned monitor.
ENoConstructException Indicates that an object should not be constructed.
ENoMonitorSupportException ENoMonitorSupportException is the exception raised when the monitor functionality is not available.
ENotImplemented This exception indicates that an operation is not implemented.
ENotSupportedException This exception indicates that an operation is not supported because it is not implemented.
EObjectDisposed
EOSError EOSError is the exception class for operating system errors.
EOutOfMemory EOutOfMemory is the exception class for unsuccessful attempts to allocate memory.
EOverflow EOverflow is the exception class for floating-point register overflows.
EPackageError EPackageError is the exception class for package-related errors.
EPathTooLongException Indicates that a path is longer than the system-defined maximum length.
EPrivilege EPrivilege is the exception class for processor privilege violations.
EProgrammerNotFound Nonstandard way to indicate software faults.
EPropReadOnly EPropReadOnly is the exception class for invalid attempts to write to a property using OLE automation.
EPropWriteOnly EPropWriteOnly is the exception class for invalid attempts to read a property using OLE automation.
ERangeError ERangeError indicates an integer range violation.
ESafecallException ESafecallException is the exception for problems with the safecall calling convention.
EStackOverflow (deprecated) EStackOverflow is the exception class for stack overflows.
EUnderflow EUnderflow is the exception class for values that are too small to be represented with a floating-point variable.
EVariantError EVariantError is the exception class for errors involving Variant data types.
EWin32Error (deprecated) EWin32Error is the exception class for Windows errors.
ExceptClass ExceptClass declares an Exception class.
Exception Exception is the base class for all run-time exceptions.
EZeroDivide EZeroDivide is the exception class for floating-point divide-by-zero errors.
ILanguageEnumerable Represents an enumerable collection of languages.
ILanguageEnumerator Enumerator for a collection of languages.
IReadWriteSync IReadWriteSync is the interface for general reader/writer lock synchronization.
TBigEndianUnicodeEncoding TBigEndianUnicodeEncoding is the class that provides support for big-endian Unicode (UTF-16) encoding.
TBooleanHelper TBooleanHelper is a record helper that provides functions for the Boolean type.
TByteBoolHelper TByteBoolHelper is a record helper that provides functions for the ByteBool type.
TByteHelper TByteHelper is a record helper that provides functions for the Byte type.
TCardinalHelper TCardinalHelper is a record helper that provides functions for the Cardinal type.
TDoubleHelper Provides support for performing low-level operations on single precision floating-point values.
TEncoding System.SysUtils.TEncoding defines a specific encoding for a character or a string.
TExtendedHelper Provides support for performing low-level operations on extended precision floating-point values.
TGuidHelper Helper type for TGUID.
TInt64Helper TInt64Helper is a record helper that provides functions for the Int64 type.
TIntegerHelper TIntegerHelper is a record helper that provides functions for the Integer type.
TLanguages TLanguages lists all available Windows locales.
TLongBoolHelper TLongBoolHelper is a record helper that provides functions for the LongBool type.
TMBCSEncoding TMBCSEncoding is a base class for other MBCS (Multi-Byte Character Set) encoding classes.
TMREWSync TMREWSync is a short name equivalent to TMultiReadExclusiveWriteSynchronizer.
TMultiReadExclusiveWriteSynchronizer TMultiReadExclusiveWriteSynchronizer protects memory in a multi-threaded application.
TNativeIntHelper TNativeIntHelper is a record helper that provides functions for the NativeInt type.
TNativeUIntHelper TNativeUIntHelper is a record helper that provides functions for the NativeUInt type.
TShortIntHelper TShortIntHelper is a record helper that provides functions for the ShortInt type.
TSimpleRWSync TSimpleRWSync provides the reader/writer lock synchronization support.
TSingleHelper Provides support for performing low-level operations on single precision floating-point values.
TSmallIntHelper TSmallIntHelper is a record helper that provides functions for the SmallInt type.
TStringBuilder An editable array of characters whose content has all the functionality of a string object.
TStringHelper Record helper that provides functions and properties for working with all strings, including both 1-based and 0-based strings.
TThreadLocalCounter For Delphi RTL internal use.
TUInt64Helper TUInt64Helper is a record helper that provides functions for the UInt64 type.
TUnicodeEncoding TUnicodeEncoding is the class that provides support for Unicode (UTF-16) encoding.
TUTF7Encoding TUTF7Encoding is the class that provides support for UTF-7 encoding.
TUTF8Encoding TUTF8Encoding is the class that provides support for UTF-8 encoding.
TWordBoolHelper TWordBoolHelper is a record helper that provides functions for the WordBool type.
TWordHelper TWordHelper is a record helper that provides functions for the Word type.
Routines
Abort Raises a silent exception.
AddExitProc Adds a procedure to the exit list.
AddTerminateProc Adds a terminate procedure to the system list of termination procedures.
AdjustLineBreaks AdjustLineBreaks adjusts all line breaks in the given string to the indicated style.
AnsiCompareFileName Compares file names, based on the current locale.
AnsiCompareStr Compares strings based on the current locale with case sensitivity.
AnsiCompareText Compares strings based on the current locale without case sensitivity.
AnsiDequotedStr Converts a quoted string into an unquoted string.
AnsiExtractQuotedStr Converts a quoted string into an unquoted string.
AnsiLastChar Returns a pointer to the last character in a string.
AnsiLowerCase Returns a string that is a copy of the given string converted to lowercase.
AnsiLowerCaseFileName (deprecated) Converts a file name to lowercase.
AnsiPos Locates the position of a substring.
AnsiQuotedStr Returns the quoted version of a string.
AnsiSameStr Compares strings based on the current locale with case sensitivity.
AnsiSameText Compares strings based on the current locale without case sensitivity.
AnsiStrAlloc (deprecated) Allocates a buffer for a null-terminated AnsiString and returns a pointer to its first character.
AnsiStrComp Compares null-terminated character strings.
AnsiStrIComp Compares null-terminated character strings case-insensitively.
AnsiStrLastChar Returns a pointer to the last character in a null-terminated string.
AnsiStrLComp Compares the first MaxLen bytes of two null-terminated strings, case-sensitively.
AnsiStrLIComp Compares two strings, case-insensitively, up to the first MaxLen bytes.
AnsiStrLower Converts all characters in a null-terminated string to lowercase.
AnsiStrPos Returns a pointer to the first occurrence of a substring.
AnsiStrRScan Returns a pointer to the last occurrence of a specified character in a specified string.
AnsiStrScan Returns a pointer to the first occurrence of a character in a string.
AnsiStrUpper Converts all characters in a null-terminated string to uppercase.
AnsiUpperCase Converts a string to uppercase.
AnsiUpperCaseFileName (deprecated) Converts a file name to uppercase.
AppendStr (deprecated) Appends a dynamically allocated string to an existing string.
AssignStr (deprecated) Assigns a new dynamically allocated string to a specified pointer.
Beep Generates a message beep.
BoolToStr Converts a Boolean value into a string.
ByteLength Returns the length of a given string in bytes.
BytesOf Converts a string into a byte array.
ByteToCharIndex (deprecated) Returns the position of the character that contains a specified byte in a string.
ByteToCharLen (deprecated) Returns the number of characters fully contained in the first MaxLen bytes of a string.
ByteType Indicates whether a byte in a string is a single-byte character, the first byte of a double-byte character, or the second byte of a double-byte character.
CallTerminateProcs Calls all of the functions in the termination procedure list.
ChangeFileExt Changes the extension of a file name.
ChangeFilePath Changes the path of a file name.
CharInSet CharInSet checks whether a given character is contained within a set.
CharLength Returns the number of bytes used by character.
CharToByteIndex (deprecated) Returns the 1-based index of the first byte of a specified character in a string.
CharToByteLen (deprecated) Returns the length, in bytes, of the first MaxLen characters of a string.
CharToElementIndex Returns the 1-based index of the first element of a specified character in a string.
CharToElementLen Returns the length, in bytes, of the first MaxLen characters of a string.
CheckOSError Checks an OS error.
CheckWin32Version Check to see whether you are running on a specific level (or higher) of the Windows 32 bit Operating System.
CompareMem Performs a binary comparison of two memory images.
CompareStr Compares two strings, with case sensitivity.
CompareText Compares two strings by their ordinal value, without case sensitivity.
CreateDir Creates a new directory.
CreateGUID Creates a globally unique identifier.
CurrentYear Returns the current year.
CurrToStr Formats a Currency value as a string.
CurrToStrF Converts a Currency value to a string, using a specified format.
Date Returns the current date.
DateTimeToFileDate Converts a TDateTime value into an OS timestamp value.
DateTimeToStr Converts a TDateTime value to a string, using the local settings for displaying date and time.
DateTimeToString Converts a TDateTime value into a string, using a specified Format.
DateTimeToSystemTime Converts a TDateTime value into the Win32 API's system time type.
DateTimeToTimeStamp Converts a TDateTime value into the corresponding TTimeStamp value.
DateToStr Converts a TDateTime value into a string.
DayOfWeek Returns the day of the week for a specified date.
DecodeDate Returns Year, Month, and Day values for a TDateTime value.
DecodeDateFully Returns Year, Month, and Day, and Day-of-Week values for a TDateTime value.
DecodeTime Breaks a TDateTime value into hours, minutes, seconds, and milliseconds.
DelegatesEqual DelegatesEqual checks whether two delegates are equal.
DeleteFile Deletes a file from disk.
DeleteFileA ANSI version of DeleteFile.
DirectoryExists Determines whether a specified directory exists.
DiskFree Returns the number of free bytes on a specified drive.
DiskSize Returns the size, in bytes, of a specified drive.
DisposeStr (deprecated) Disposes of a string pointer that was allocated using NewStr.
ElementToCharIndex Returns the position of the character that contains a specified element in a string.
ElementToCharLen Returns the number of characters fully contained in the first MaxLen elements of a string.
EncodeDate Returns a TDateTime value that represents a specified Year, Month, and Day.
EncodeTime Returns a TDateTime value for a specified Hour, Min, Sec, and MSec.
ExceptionErrorMessage Formats a standard error message.
ExcludeTrailingBackslash Returns a path name without a trailing delimiter. Note: This function is included for backward compatibility only. System.SysUtils.ExcludeTrailingPathDelimiter should be used instead.
ExcludeTrailingPathDelimiter Returns a path name without a trailing delimiter.
ExpandFileName Returns the full path name for a relative file name.
ExpandFileNameCase Returns the full path name for a relative file name on a case-sensitive file system.
ExpandUNCFileName Returns the full path of a file name in UNC format, if appropriate.
ExtractFileDir Extracts the drive and directory parts from FileName.
ExtractFileDrive Returns the drive portion of a file name.
ExtractFileExt Returns the extension portions of a file name.
ExtractFileName Extracts the name and extension parts of a file name.
ExtractFilePath Returns the drive and directory portions of a file name.
ExtractRelativePath Returns a relative path name, relative to a specific base directory.
ExtractShortPathName Converts a file name to the short 8.3 form.
FileAge Returns the OS time stamp of a file.
FileClose Closes a specified file.
FileCreate Creates a new file.
FileCreateSymLink FileCreateSymLink creates a symbolic link.
FileDateToDateTime Converts an OS time stamp value to TDateTime value.
FileExists Tests whether a specified file exists.
FileGetAttr Returns the file attributes of FileName.
FileGetDate Returns an OS time stamp for a specified file.
FileGetDateTimeInfo FileGetDateTimeInfo returns the time stamp of the specified file.
FileGetSymLinkTarget Returns information about a symbolic link's target.
FileIsReadOnly Reports whether a file is read-only.
FileOpen Opens a specified file using a specified access mode.
FileRead Reads a specified number of bytes from a file.
FileSearch Searches a specified directory path for a file. The search always starts with the current directory of the current drive.
FileSeek Repositions read/write point.
FileSetAttr Sets the file attributes of a specified file.
FileSetDate Sets the OS time stamp for a specified file.
FileSetReadOnly Sets the file permissions to read-only.
FileSystemAttributes Returns the attributes of a file system.
FileWrite Writes the contents of a buffer to the current position in a file.
FinalizePackage Finalizes the specified package (.bpl file).
FindClose Releases memory allocated by FindFirst.
FindCmdLineSwitch Determines whether a string was passed as a command-line argument to the application.
FindDelimiter Returns the index of a delimiter character in the given string.
FindFirst Searches for the first instance of a file name with a given set of attributes in a specified directory.
FindNext Returns the next entry matching the name and attributes specified in a previous call to FindFirst.
FloatToCurr Converts a floating-point value to a Currency value.
FloatToDateTime Converts a floating-point value to a TDateTime value.
FloatToDecimal Converts a floating-point value to a decimal representation.
FloatToStr Converts a floating-point value to a string.
FloatToStrF Converts a floating point value to a string, using a specified Format, Precision, and Digits.
FloatToText Converts a floating-point value to an unterminated character string, using a specified Format, Precision, and Digits.
FloatToTextFmt Converts a floating-point value to an unterminated character string, using a specified format.
FmtLoadStr Returns formatted output using a resourced format string.
FmtStr Assembles a formatted string using a format string and an array of arguments.
ForceDirectories Creates a new directory, including the creation of parent directories as needed.
Format Returns a formatted string assembled from a format string and an array of arguments.
FormatBuf Formats the arguments from an array, placing the result in a buffer.
FormatCurr Formats a Currency object.
FormatDateTime Formats a TDateTime value.
FormatFloat Formats a floating-point value.
FreeAndNil Frees an object reference and replaces the reference with nil (Delphi) or NULL (C++).
GDAL Get Delphi Access Licence.
GetCurrentDir Returns the name of the current directory.
GetDefaultFallbackLanguages GetDefaultFallbackLanguages returns the current DefaultFallbackLanguages string.
GetEnvironmentVariable Retrieves an environment variable value.
GetEnvironmentVariableA ANSI version of GetEnvironmentVariable.
GetFileVersion Returns file version.
GetFormatSettings Resets the date and number format parameters to initial values.
GetHomePath Returns the path to the home of application's writable scratch directory or storage. Note: Do not use this method for new development. In particular, if you are doing cross-platform development, we recommend that you use the more platform-agnostic implementation, System.IOUtils.TPath.GetHomePath.
GetLocaleChar Retrieves the first character of a localization value.
GetLocaleDirectory Returns the fully qualified name of the locale directory that corresponds to one of the preferred UI languages.
GetLocaleFile Returns a fully qualified path that indicates a locale file. The path is constructed with the supplied filename and the preferred UI language subdirectories.
GetLocaleFormatSettings (deprecated) Initializes a TFormatSettings record (deprecated, use TFormatSettings.Create).
GetLocaleStr Retrieves a localization value.
GetModuleName Returns the fully qualified name of a module, given its handle.
GetPackageDescription Returns the description resource of a package.
GetPackageInfo Enumerates all the units and required packages for a package.
GetPackageTargets
GetTime Returns the current time.
GUIDToString Converts a class identifier GUID into a string.
HashName HashName generates a hash code from a null-terminated string.
IncAMonth Increments date information by one month.
IncludeTrailingBackslash Ensures that a path name ends with delimiter. Note: This function is included for backward compatibility only. System.SysUtils.IncludeTrailingPathDelimiter should be used instead.
IncludeTrailingPathDelimiter Ensures that path name ends with a delimiter.
IncMonth Returns a date shifted by a specified number of months.
InitializePackage Validates and initializes a given package.
IntToHex Returns the hex representation of an integer.
IntToStr Converts an integer to a string.
IsAssembly Determines whether a dll is an Assembly.
IsDelimiter Indicates whether a specified character in a string matches one of a set of delimiters.
IsEqualGUID Indicates whether two TGUID values are the same.
IsLeadChar Checks whether a character is a valid lead character (first in a multi-byte character sequence).
IsLeapYear Indicates whether a specified year is a leap year.
IsPathDelimiter Indicates whether the character at a specified position in a string is a path delimiter.
IsRelativePath Indicates whether the specified path is a relative path.
IsValidIdent Determines whether a string conforms to Delphi identifier rules.
Languages Lists the locales for which support is available.
LastDelimiter Returns the index of the last character that matches any character in a specified set of delimiters.
LCIDToCodePage Retrieves the ANSI code page associated with a given locale identifier.
LoadPackage Loads a specified package.
LoadStr Loads a string resource from the application's executable file.
LocaleDirectoryExists Returns a Boolean value that indicates whether the specified directory exists with preferred UI language subdirectories.
LocaleFileExists Returns a Boolean value that indicates whether the specified file exists with preferred UI language subdirectories.
LowerCase Converts an ASCII string to lowercase.
MSecsToTimeStamp Converts a specified number of milliseconds into a TTimeStamp value.
NewStr (deprecated) Allocates a string on the heap.
NextCharIndex Returns the byte index of the next character.
Now Returns the current date and time.
OutOfMemoryError Raises an EOutOfMemory exception.
PlatformBytesOf Converts a string into a byte array.
PlatformStringOf Converts a byte array into a Unicode string.
PreferredUILanguageList PreferredUILanguageList returns a list that contains the preferred UI languages.
PreferredUILanguages PreferredUILanguages returns the preferred UI languages for user default UI languages at run time.
QuotedStr Returns the quoted version of a string.
RaiseLastOSError Raises an exception for the last occurring OS or system library error.
RaiseLastWin32Error (deprecated) Raises an exception for the last occurring Win32 error.
RCS Check for Delphi Client/Server Licence.
RemoveDir Deletes an existing empty directory.
RenameFile Changes a file name.
ReplaceDate Replaces the date portion of a TDateTime value with a specified date.
ReplaceTime Replaces the time portion of a TDateTime value with a specified time.
RPR Check for Delphi Professional Licence.
SafeLoadLibrary Safe and simple library loading function.
SameFileName Compares file names based on the current locale.
SameStr Compares two strings by ordinal value with case sensitivity.
SameText Compares two strings by ordinal value without case sensitivity.
SetCurrentDir Sets the current directory.
SetDefaultFallbackLanguages SetDefaultFallbackLanguages sets a new list of default fallback languages.
ShowException Displays an exception message with its physical address.
Sleep Delay program execution for a specified number of milliseconds.
StrAlloc Allocates a buffer for a null-terminated string and returns a pointer to its first character.
StrBufSize Returns the maximum number of characters that can be stored in a buffer allocated by StrAlloc.
StrByteType Indicates whether a byte in a string is a single-byte character, the first byte of a double-byte character, or the second byte of a double-byte character.
StrCat Appends a copy of Source to the end of Dest and returns the concatenated string.
StrCharLength Returns the length, in bytes, of a character.
StrComp Compares two strings with case sensitivity.
StrCopy Copies a null-terminated string.
StrDispose Disposes of a string.
StrECopy Copies a null-terminated string.
StrEnd Returns a pointer to the end of a null-terminated string.
StrFmt Formats entries in an array.
StrIComp Compares two strings without case sensitivity.
StringOf Converts a byte array into a Unicode string using the default system locale.
StringReplace Replaces occurrences of a substring within a string.
StringToGUID Converts a string into a GUID.
StrLCat Appends up to a specified maximum number of characters to a string.
StrLComp Compares up to a specified maximum number of characters in two strings.
StrLCopy Copies up to a specified maximum number of characters from Source to Dest.
StrLen Returns the number of characters in a string, excluding the null terminator.
StrLFmt Formats a series of arguments from a specified open array into a buffer.
StrLIComp Compares strings up to a specified maximum number of characters, without case sensitivity.
StrLower Converts a string to lowercase.
StrMove Copies a specified number of characters to the string.
StrNew Allocates space on and copies a string to the heap, returning a pointer to the string.
StrNextChar Returns a pointer to the following character.
StrPas Converts null-terminated string to an AnsiString (long string).
StrPCopy Copies an AnsiString (long string) to a null-terminated string.
StrPLCopy Copies characters from an AnsiString (long string) to a null-terminated string.
StrPos Returns a pointer to the first occurrence of STR2 in STR1.
StrRScan Returns a pointer to the last occurrence of a specified character in a string.
StrScan Returns a pointer to the first occurrence of a specified character in a string.
StrToBool Converts a string to a Boolean value.
StrToBoolDef Converts a string to a Boolean value, with error default.
StrToCurr Converts a string to a Currency value.
StrToCurrDef Converts a string to a Currency value, with default error.
StrToDate Converts a string to a TDateTime value.
StrToDateDef Converts a string to a TDateTime value, with default error.
StrToDateTime Converts a string to a TDateTime value.
StrToDateTimeDef Converts a string to a TDateTime value, with a default error.
StrToFloat Converts a given string to a floating-point value.
StrToFloatDef Converts a given string into a floating-point value, with a default error.
StrToInt Converts a string that represents an integer (decimal or hex notation) into a number.
StrToInt64 Converts a string that represents an integer (decimal or hex notation) into a number.
StrToInt64Def Converts a string that represents an integer (decimal or hex notation) into a number.
StrToIntDef Converts a string that represents an integer (decimal or hex notation) into a number with error default.
StrToTime Converts a string to a TDateTime value.
StrToTimeDef Converts a string to a TDateTime value, with a default error.
StrUpper Returns a string in uppercase.
Supports Indicates whether a given object or interface supports a specified interface.
SysErrorMessage Converts OS error codes into strings.
SystemTimeToDateTime Converts a system time value into a TDateTime value.
TextPos Returns a pointer to the first occurrence of a substring in a string. TextPos is case-insensitive.
TextToFloat Converts a null-terminated string to a floating-point value.
Time Returns the current time.
TimeStampToDateTime Converts a TTimeStamp value into the corresponding TDateTime value.
TimeStampToMSecs Converts a TTimeStamp value into an absolute number of milliseconds.
TimeToStr Returns a string that represents a TDateTime value.
Trim Trims leading and trailing spaces and control characters from a string.
TrimLeft Trims leading spaces and control characters from a string.
TrimRight Trims trailing spaces and control characters from a string.
TryEncodeDate Creates a TDateTime value that represents a specified Year, Month, and Day.
TryEncodeTime Creates a TDateTime value for a specified Hour, Min, Sec, and MSec.
TryFloatToCurr Converts a floating-point value into a Currency value.
TryFloatToDateTime Converts a floating-point value into a TDateTime value.
TryStrToBool Converts a string to a Boolean value, with a Boolean success code.
TryStrToCurr Converts a string to a Currency value, with a Boolean success code.
TryStrToDate Converts a string to a TDateTime value, with a Boolean success code.
TryStrToDateTime Converts a string to a TDateTime value, with a Boolean success code.
TryStrToFloat Converts a given string to a floating-point value, with a Boolean success code.
TryStrToInt Converts a string that represents an integer (decimal or hex notation) into a number with Boolean success code.
TryStrToInt64 Converts a string that represents an integer (decimal or hex notation) into a number.
TryStrToTime Converts a string to a TDateTime value with a default error.
TrySystemTimeToDateTime Converts a system time value into a TDateTime value.
UIntToStr Converts an unsigned integer into a string.
UnloadPackage Unloads a package.
UpperCase Returns a copy of a string in uppercase.
WideBytesOf Converts a Unicode string into an array of bytes.
WideCompareStr Compares Unicode strings based on the current locale with case sensitivity.
WideCompareText Compares Unicode strings based on the current locale without case sensitivity.
WideFmtStr Assembles a formatted Unicode string using a format string and an array of arguments.
WideFormat Returns a formatted Unicode string assembled from a format string and an array of arguments.
WideFormatBuf Formats the arguments from an array, placing the result in a buffer.
WideLowerCase Returns Unicode string converted to lowercase.
WideSameStr Compares Unicode strings based on the current locale with case sensitivity.
WideSameText Compares Unicode strings based on the current locale without case sensitivity.
WideStrAlloc Allocates a buffer for a null-terminated wide string and returns a pointer to its first character.
WideStringOf Converts a byte array into a Unicode string using the Unicode locale.
WideUpperCase Returns Unicode string converted to uppercase.
Win32Check Checks the return value of a Windows API call and raises an appropriate exception when it indicates failure.
WrapText Inserts a line break into a string as its length approaches a specified size.
Types
_di_ILanguageEnumerable Delphi interface of ILanguageEnumerable.
_di_ILanguageEnumerator Delphi interface of ILanguageEnumerator.
_di_IReadWriteSync Delphi interface of IReadWriteSync.
_di_TProc Delphi interface of TProc.
Int64Rec Int64Rec declares a utility record to provide access to the bytes of an Int64 value.
LongRec LongRec declares a utility record to provide access to the bytes of a LongWord value.
PByteArray PByteArray declares a pointer to an array of Bytes.
PDayTable PDayTable is a pointer to a TDayTable type.
PExceptionRecord Pointer to a TExceptionRecord type.
PThreadInfo Pointer to a TThreadInfo.
PWordArray PWordArray is a pointer to a TWordArray type.
System_Sysutils__45
System_Sysutils__55
System_Sysutils__65
TArchitectures Specifies a set of CPU architectures.
TByteArray TByteArray declares an array of Bytes.
TBytes TBytes declares an array of Bytes.
TCharArray TCharArray declares an array of characters.
TCharSearch Character search result.
TCmdLineSwitchType Defines the ways command-line parameters can be specified in the command line.
TCmdLineSwitchTypes Is a set of TCmdLineSwitchType constants.
TDateTimeInfoRec TDateTime utility tool box.
TDayTable TDayTable is used to hold the number of days of each month of a year.
TFileName TFileName is a string that represents a file name.
TFilenameCaseMatch TFilenameCaseMatch indicates how close a match was found to a specified file name.
TFileSystemAttribute Enumerates the attributes specific to a file system.
TFileSystemAttributes Represents a set of TFileSystemAttribute values.
TFloatFormat TFloatFormat is an enumerated list of formatting codes for float functions.
TFloatRec TFloatRec declares a utility record that provides access to the attributes of a floating-point number.
TFloatValue TFloatValue is an enumeration of two basic floating-point types.
TFormatSettings TFormatSettings defines a thread-safe string formatting context.
TFunc TFunc declares a reference to a generic function.
TIntegerSet TIntegerSet is used to treat an integer as a set of bits.
TLangRec TLangRec declares a record used to describe a Windows locale.
TLocaleID Locale identifier.
TLocaleOptions TLocaleOptions defines a choice of dependent and independent locale options.
TMarshaller TMarshaller is a record that facilitates working with memory buffers.
TMbcsByteType TMbcsByteType represents the use of a single byte in a string that uses a multi-byte character set (MBCS).
TNameType TNameType enumerates the types of names reported to TPackageInfoProc routines.
TOSVersion Describes the current operating system: platform and version.
TPackageInfoProc TPackageInfoProc is a callback procedure invoked by GetPackageInfo.
TPlatforms Specifies a set of OS platforms.
TPredicate TPredicate declares a reference to a generic function that behaves as a logical predicate.
TProc TProc declares a reference to a generic procedure.
TProcedure TProcedure declares a procedure.
TReplaceFlags TReplaceFlags indicates how to perform a search-and-replace operation.
TSearchRec TSearchRec defines file information searched for by FindFirst or FindNext.
TStringSplitOptions
TSymLinkRec TSymLinkRec is used to store information about symbolic link files.
TSysCharSet TSysCharSet is a set of characters.
TSysLocale TSysLocale represents locale information.
TTerminateProc TTerminateProc is a call-back function invoked by CallTerminateProcs.
TThreadInfo For internal use.
TTimeStamp TTimeStamp represents time and date values.
TUncertainState A variable of type TUncertainState can have 3 possible values: Yes, No, and Maybe.
TValidatePackageProc TValidatePackageProc is a call-back function invoked by LoadPackage.
TWordArray TWordArray declares an array of Words.
WordRec WordRec declares a utility record to store the high and low order bytes of a variable.
Variables
EmptyAnsiStr An empty string constant
EmptyStr An empty string constant.
EmptyWideStr An empty string version of the WideString constant.
FalseBoolStrs Lists strings that can represent the Boolean value of False.
FormatSettings Default format settings.
GetDiskFreeSpaceEx Returns information about the space available on a disk volume.
HexDisplayPrefix HexDisplayPrefix contains the prefix to display on hexadecimal values--$ for Pascal (Delphi) syntax, 0x for C++ syntax.
LeadBytes Lists all values that can be the first byte of a double-byte character on the local system.
MaxCurrency Defines the largest value supported for Currency data types on the Windows operating system.
MaxDateTime Specifies the highest supported TDateTime value.
MinCurrency Defines the largest negative value that can be held by a Currency data variable on the Windows operating system.
MinDateTime Specifies the earliest supported TDateTime value.
MonthDays Defines the number of days in each month for normal and leap years.
NullAnsiStr Pointer to the empty ANSI string constant.
NullStr A pointer to an empty string.
NullWideStr A pointer to an empty wide string.
SysLocale SysLocale holds locale information.
TrueBoolStrs Lists strings that can represent the Boolean value of True.
Win32BuildNumber Specifies the build level of the Windows Operating System operating.
Win32CSDVersion Specifies the Win32 latest installed service pack.
Win32MajorVersion Specifies which major Windows Operating System version is operating.
Win32MinorVersion Specifies which minor Windows Operating System version is operating.
Win32Platform Specifies the Windows Operating System platform identifier.
Constants
CDefaultTwoDigitYearCenturyWindow CDefaultTwoDigitYearCenturyWindow: Integer = $32;
DateDelta DateDelta: Integer = $A955A;
DefaultFalseBoolStr DefaultFalseBoolStr: string = False;
DefaultTrueBoolStr DefaultTrueBoolStr: string = True;
DriveDelim DriveDelim: Char = $3A;
faAnyFile faAnyFile: Integer = $1FF;
faArchive faArchive: Integer = $20;
faCompressed faCompressed: Integer = $800;
faDirectory faDirectory: Integer = $10;
faEncrypted faEncrypted: Integer = $4000;
faHidden faHidden: Integer = 2;
faInvalid faInvalid: Integer = $FFFFFFFF;
faNormal faNormal: Integer = $80;
faReadOnly faReadOnly: Integer = 1;
faSymLink faSymLink: Integer = $400;
faSysFile faSysFile: Integer = 4;
faTemporary faTemporary: Integer = $100;
faVirtual faVirtual: Integer = $10000;
faVolumeID faVolumeID: Integer = 8;
fmExclusive fmExclusive: Integer = 4;
fmOpenRead fmOpenRead: Integer = 0;
fmOpenReadWrite fmOpenReadWrite: Integer = 2;
fmOpenWrite fmOpenWrite: Integer = 1;
fmShareCompat fmShareCompat: Integer = 0;
fmShareDenyNone fmShareDenyNone: Integer = $40;
fmShareDenyRead fmShareDenyRead: Integer = $30;
fmShareDenyWrite fmShareDenyWrite: Integer = $20;
fmShareExclusive fmShareExclusive: Integer = $10;
HoursPerDay HoursPerDay: Integer = $18;
INVALID_HANDLE_VALUE INVALID_HANDLE_VALUE: Integer = $FFFFFFFF;
MinsPerDay MinsPerDay: Integer = $5A0;
MinsPerHour MinsPerHour: Integer = $3C;
MSecsPerDay MSecsPerDay: Integer = $5265C00;
MSecsPerSec MSecsPerSec: Integer = $3E8;
PathDelim PathDelim: Char = $5C;
PathSep PathSep: Char = $3B;
pfBCB4Produced pfBCB4Produced: Integer = $8000000;
pfConsumerBCB pfConsumerBCB: Integer = $200000;
pfConsumerCompat pfConsumerCompat: Integer = 0;
pfConsumerDelphi pfConsumerDelphi: Integer = $100000;
pfConsumerMask pfConsumerMask: Integer = $F00000;
pfDelphi4Produced pfDelphi4Produced: Integer = $C000000;
pfDesignOnly pfDesignOnly: Integer = 2;
pfExeModule pfExeModule: Integer = 0;
pfIgnoreDupUnits pfIgnoreDupUnits: Integer = 8;
pfLibraryModule pfLibraryModule: Integer = $80000000;
pfModuleTypeMask pfModuleTypeMask: Integer = $C0000000;
pfNeverBuild pfNeverBuild: Integer = 1;
pfPackageModule pfPackageModule: Integer = $40000000;
pfProducerMask pfProducerMask: Integer = $C000000;
pfProducerUndefined pfProducerUndefined: Integer = $4000000;
pfRunOnly pfRunOnly: Integer = 4;
pfV3Produced pfV3Produced: Integer = 0;
SecsPerDay SecsPerDay: Integer = $15180;
SecsPerHour SecsPerHour: Integer = $E10;
SecsPerMin SecsPerMin: Integer = $3C;
SwitchChars SwitchChars: Set = ['-','/'];
ufImplicitUnit ufImplicitUnit: Integer = $10;
ufMainUnit ufMainUnit: Integer = 1;
ufOrgWeakUnit ufOrgWeakUnit: Integer = 8;
ufPackageUnit ufPackageUnit: Integer = 2;
ufWeakPackageUnit ufWeakPackageUnit: Integer = 6;
ufWeakUnit ufWeakUnit: Integer = 4;
UnixDateDelta UnixDateDelta: Integer = $63E1;




Leggi tutto


πŸ“† 09/03/2014

Delphi rad studio xe5 Android - System.IOUtils.TFile


TFile = record
private
const
FCMinFileNameLen = 12;
class procedure InternalCheckFilePathParam(const Path: string;
const FileExistsCheck: Boolean); static;
class procedure CheckAppendAllTextParameters(const Path: string;
const Encoding: TEncoding; const NeedEncoding: Boolean); static;
class procedure CheckAppendTextParameters(const Path: string); inline; static;
class procedure CheckCopyParameters(const SourceFileName,
DestFileName: string; const Overwrite: Boolean); static;
class procedure CheckCreateParameters(const Path: string); inline; static;
class procedure CheckCreateTextParameters(const Path: string); inline; static;
{$IFDEF MSWINDOWS}
class procedure CheckDecryptParameters(const Path: string); inline; static;
{$ENDIF MSWINDOWS}
class procedure CheckDeleteParameters(const Path: string); inline; static;
{$IFDEF MSWINDOWS}
class procedure CheckEncryptParameters(const Path: string); inline; static;
{$ENDIF MSWINDOWS}
class procedure CheckGetAttributesParameters(const Path: string); inline; static;
class procedure CheckGetCreationTimeParameters(const Path: string); inline; static;
class procedure CheckGetCreationTimeUtcParameters(const Path: string); inline; static;
class procedure CheckGetLastAccessTimeParameters(const Path: string); inline; static;
class procedure CheckGetLastAccessTimeUtcParameters(const Path: string); inline; static;
class procedure CheckGetLastWriteTimeParameters(const Path: string); inline; static;
class procedure CheckGetLastWriteTimeUtcParameters(const Path: string); inline; static;
class procedure CheckMoveParameters(const SourceFileName,
DestFileName: string); static;
class procedure CheckOpenParameters(const Path: string); inline; static;
class procedure CheckOpenReadParameters(const Path: string); inline; static;
class procedure CheckOpenTextParameters(const Path: string); inline; static;
class procedure CheckOpenWriteParameters(const Path: string); inline; static;
class procedure CheckReadAllBytesParameters(const Path: string); inline; static;
class procedure CheckReadAllLinesParameters(const Path: string;
const Encoding: TEncoding; const NeedEncoding: Boolean); static;
class procedure CheckReadAllTextParameters(const Path: string;
const Encoding: TEncoding; const NeedEncoding: Boolean); static;
{$IFDEF MSWINDOWS}
class procedure CheckReplaceParameters(const SourceFileName,
DestinationFileName, DestinationBackupFileName: string); static;
{$ENDIF MSWINDOWS}
class procedure CheckSetAttributesParameters(const Path: string); inline; static;
class procedure CheckSetCreationTimeParameters(const Path: string); inline; static;
class procedure CheckSetCreationTimeUtcParameters(const Path: string); inline; static;
class procedure CheckSetLastAccessTimeParameters(const Path: string); inline; static;
class procedure CheckSetLastAccessTimeUtcParameters(const Path: string); inline; static;
class procedure CheckSetLastWriteTimeParameters(const Path: string); inline; static;
class procedure CheckSetLastWriteTimeUtcParameters(const Path: string); inline; static;
class procedure CheckWriteAllBytesParameters(const Path: string); inline; static;
class procedure CheckWriteAllLinesParameters(const Path: string;
const Encoding: TEncoding; const NeedEncoding: Boolean); static;
class procedure CheckWriteAllTextParameters(const Path: string;
const Encoding: TEncoding; const NeedEncoding: Boolean); static;
class function GetEncoding(const Stream: TStream): TEncoding; static;
class function GetStringArrayFromText(const Text: string): TStringDynArray; static;
class function GetStringListFromArray(const AnArray: TStringDynArray): TStringList; static;
class function DoCreateOpenFile(const Path: string): TFileStream; static;
class function DoCopy(const SourceFileName, DestFileName: string;
const Overwrite: Boolean): Boolean; {$IFDEF MSWINDOWS} inline; {$ENDIF} static;
class function DoGetAttributes(const Path: string; FollowLink: Boolean = True): TFileAttributes; {$IFDEF MSWINDOWS}inline;{$ENDIF} static;
class function DoReadAllBytes(const Path: string): TBytes; static;
class function DoReadAllText(const Path: string): string; overload; static;
class function DoReadAllText(const Path: string;
const Encoding: TEncoding): string; overload; static;
class procedure DoSetAttributes(const Path: string;
const Attributes: TFileAttributes); {$IFDEF MSWINDOWS}inline;{$ENDIF} static;
class procedure DoWriteAllText(const Path, Contents: string;
const Encoding: TEncoding; const WriteBOM: Boolean); static;
class procedure DoWriteAllLines(const Path: string;
const Contents: TStringDynArray; const Encoding: TEncoding;
const WriteBOM: Boolean); static;
class function IntegerToFileAttributes(const Attributes: Integer): TFileAttributes; static;
class function FileAttributesToInteger(const Attributes: TFileAttributes): Integer; static;
public
class function Create(const Path: string): TFileStream; overload; inline; static;
class function Create(const Path: string; const BufferSize: Integer): TFileStream; overload; static;
class procedure AppendAllText(const Path, Contents: string); overload; static;
class procedure AppendAllText(const Path, Contents: string;
const Encoding: TEncoding); overload; static;
class function AppendText(const Path: string): TStreamWriter; static;
class procedure Copy(const SourceFileName, DestFileName: string);
overload; inline; static;
class procedure Copy(const SourceFileName, DestFileName: string;
const Overwrite: Boolean); overload; static;
class function CreateSymLink(const Link, Target: string): Boolean; static;
class function CreateText(const Path: string): TStreamWriter; static;
{$IFDEF MSWINDOWS}
class procedure Decrypt(const Path: string); static;
{$ENDIF MSWINDOWS}
class procedure Delete(const Path: string); static;
{$IFDEF MSWINDOWS}
class procedure Encrypt(const Path: string); static;
{$ENDIF MSWINDOWS}
class function Exists(const Path: string; FollowLink: Boolean = True): Boolean; inline; static;
class function GetAttributes(const Path: string; FollowLink: Boolean = True): TFileAttributes; inline; static;
class function GetCreationTime(const Path: string): TDateTime; inline; static;
class function GetCreationTimeUtc(const Path: string): TDateTime; inline; static;
class function GetLastAccessTime(const Path: string): TDateTime; inline; static;
class function GetLastAccessTimeUtc(const Path: string): TDateTime; inline; static;
class function GetLastWriteTime(const Path: string): TDateTime; inline; static;
class function GetLastWriteTimeUtc(const Path: string): TDateTime; inline; static;
class function GetSymLinkTarget(const FileName: string;
var SymLinkRec: TSymLinkRec): Boolean; overload; static;
class function GetSymLinkTarget(const FileName: string;
var TargetName: string): Boolean; overload; static;
class procedure Move(SourceFileName, DestFileName: string); static;
class function Open(const Path: string;
const Mode: TFileMode): TFileStream; overload; inline; static;
class function Open(const Path: string;
const Mode: TFileMode; const Access: TFileAccess): TFileStream;
overload; inline; static;
class function Open(const Path: string;
const Mode: TFileMode; const Access: TFileAccess;
const Share: TFileShare): TFileStream; overload; static;
class function OpenRead(const Path: string): TFileStream; static;
class function OpenText(const Path: string): TStreamReader; static;
class function OpenWrite(const Path: string): TFileStream; static;
class function ReadAllBytes(const Path: string): TBytes; static;
class function ReadAllLines(const Path: string): TStringDynArray;
overload; static;
class function ReadAllLines(const Path: string;
const Encoding: TEncoding): TStringDynArray; overload; static;
class function ReadAllText(const Path: string): string; overload; inline; static;
class function ReadAllText(const Path: string;
const Encoding: TEncoding): string; overload; inline; static;
class procedure Replace(const SourceFileName, DestinationFileName,
DestinationBackupFileName: string); overload; {$IFDEF MSWINDOWS}inline; {$ENDIF} static;
{$IFDEF MSWINDOWS}
class procedure Replace(SourceFileName, DestinationFileName,
DestinationBackupFileName: string; const IgnoreMetadataErrors: Boolean);
overload; static;
{$ENDIF MSWINDOWS}
class procedure SetAttributes(const Path: string;
const Attributes: TFileAttributes); inline; static;
class procedure SetCreationTime(const Path: string;
const CreationTime: TDateTime); inline; static;
class procedure SetCreationTimeUtc(const Path: string;
const CreationTime: TDateTime); inline; static;
class procedure SetLastAccessTime(const Path: string;
const LastAccessTime: TDateTime); inline; static;
class procedure SetLastAccessTimeUtc(const Path: string;
const LastAccessTime: TDateTime); inline; static;
class procedure SetLastWriteTime(const Path: string;
const LastWriteTime: TDateTime); inline; static;
class procedure SetLastWriteTimeUtc(const Path: string;
const LastWriteTime: TDateTime); inline; static;
class procedure WriteAllBytes(const Path: string; const Bytes: TBytes); static;
class procedure WriteAllLines(const Path: string;
const Contents: TStringDynArray); overload; inline; static;
class procedure WriteAllLines(const Path: string;
const Contents: TStringDynArray; const Encoding: TEncoding); overload; static;
class procedure WriteAllText(const Path, Contents: string); overload; static;
class procedure WriteAllText(const Path, Contents: string;
const Encoding: TEncoding); overload; static;
end;

Leggi tutto


πŸ“† 09/03/2014

Delphi rad studio xe5 Android - System.IOUtils.TPath


TPath = record
private
const
FCCurrentDir: string = '.'; // DO NOT LOCALIZE
FCParentDir: string = '..'; // DO NOT LOCALIZE
FCExtendedPrefix: string = '\\?\'; // DO NOT LOCALIZE
FCExtendedUNCPrefix: string = '\\?\UNC\'; // DO NOT LOCALIZE
class var
FAltDirectorySeparatorChar: Char;
FDirectorySeparatorChar: Char;
FPathSeparator: Char;
FVolumeSeparatorChar: Char;
FExtensionSeparatorChar: Char;
FInvalidPathChars: TCharArray;
FInvalidFileNameChars: TCharArray;
FPathWildcardChars: TCharArray;
FFileNameWildCardChars: TCharArray;
class procedure CheckPathLength(const Path: string; const MaxLength: Integer); static;
class function GetExtensionSeparatorPos(const FileName: string): Integer; static;
{$IFDEF MSWINDOWS}
class function HasPathValidColon(const Path: string): Boolean; static;
{$ENDIF MSWINDOWS}
class function IsCharInOrderedArray(const AChar: Char;
const AnArray: TCharArray): Boolean; static;
class function IsPathWildcardChar(const AChar: Char): Boolean; inline; static;
class function IsPathSeparator(const AChar: Char): Boolean; inline; static;
class function IsFileNameWildcardChar(const AChar: Char): Boolean; inline; static;
{$IFDEF MSWINDOWS}
class function GetPosAfterExtendedPrefix(const Path: string): Integer;
overload; inline; static;
class function GetPosAfterExtendedPrefix(const Path: string;
out Prefix: TPathPrefixType): Integer; overload; static;
class function PrefixExtendsPath(const Prefix: TPathPrefixType): Boolean; inline; static;
{$ENDIF MSWINDOWS}
class function DoCombine(const Path1, Path2: string;
const ValidateParams: Boolean): string; static;
class function DoGetDirectoryName(FileName: string): string; static;
class function DoGetFileName(const FileName: string;
const ValidateParam: Boolean): string; static;
class function DoGetFullPath(const Path: string): string; static;
class function DoGetPathRoot(const Path: string): string; static;
class function DoIsPathRooted(const Path: string;
const ValidateParam: Boolean): Boolean; static;
class function DoMatchesPattern(const FileName, Pattern: string): Boolean; inline; static;
{$IFDEF MACOS}
class function InternalGetMACOSPath(const SearchedPath: NSSearchPathDirectory; const SearchMask: NSSearchPathDomainMask): string; static;
{$ENDIF MACOS}
public
class constructor Create;
class function IsValidPathChar(const AChar: Char): Boolean; inline; static;
class function IsValidFileNameChar(const AChar: Char): Boolean; inline; static;
class function HasValidPathChars(const Path: string;
const UseWildcards: Boolean): Boolean; static;
class function HasValidFileNameChars(const FileName: string;
const UseWildcards: Boolean): Boolean; static;
class function GetExtendedPrefix(const Path: string): TPathPrefixType; static;
class function IsDriveRooted(const Path: string): Boolean; static;
class function IsExtendedPrefixed(const Path: string): Boolean; inline; static;
class function IsRelativePath(const Path: string): Boolean; static;
class function IsUNCPath(const Path: string): Boolean; inline; static;
class function IsUNCRooted(const Path: string): Boolean; static;
class function GetGUIDFileName(const UseSeparator: Boolean = False): string; static;
class function DriveExists(const Path: string): Boolean; static;
class function MatchesPattern(const FileName, Pattern: string;
const CaseSensitive: Boolean): Boolean; static;
class function ChangeExtension(const Path, Extension: string): string; static;
class function Combine(const Path1, Path2: string): string; inline; static;
class function GetDirectoryName(FileName: string): string; static;
class function GetExtension(const FileName: string): string; static;
class function GetFileName(const FileName: string): string; inline; static;
class function GetFileNameWithoutExtension(const FileName: string): string; static;
class function GetFullPath(const Path: string): string; static;
class function GetInvalidFileNameChars: TCharArray; inline; static;
class function GetInvalidPathChars: TCharArray; inline; static;
class function GetPathRoot(const Path: string): string; static;
class function GetRandomFileName: string; static;
class function GetTempFileName: string; static;
class function GetTempPath: string; static;
class function GetHomePath: string; static;
class function GetDocumentsPath: string; static;
class function GetSharedDocumentsPath: string; static;
class function GetLibraryPath: string; static;
class function GetCachePath: string; static;
class function GetPublicPath: string; static;
class function GetPicturesPath: string; static;
class function GetSharedPicturesPath: string; static;
class function GetCameraPath: string; static;
class function GetSharedCameraPath: string; static;
class function GetMusicPath: string; static;
class function GetSharedMusicPath: string; static;
class function GetMoviesPath: string; static;
class function GetSharedMoviesPath: string; static;
class function GetAlarmsPath: string; static;
class function GetSharedAlarmsPath: string; static;
class function GetDownloadsPath: string; static;
class function GetSharedDownloadsPath: string; static;
class function GetRingtonesPath: string; static;
class function GetSharedRingtonesPath: string; static;
class function GetAttributes(const Path: string; FollowLink: Boolean = True): TFileAttributes; inline; static;
class procedure SetAttributes(const Path: string;
const Attributes: TFileAttributes); inline; static;
class function HasExtension(const Path: string): Boolean; static;
class function IsPathRooted(const Path: string): Boolean; inline; static;
class property ExtensionSeparatorChar: Char read FExtensionSeparatorChar;
class property AltDirectorySeparatorChar: Char read FAltDirectorySeparatorChar;
class property DirectorySeparatorChar: Char read FDirectorySeparatorChar;
class property PathSeparator: Char read FPathSeparator;
class property VolumeSeparatorChar: Char read FVolumeSeparatorChar;
end;


Leggi tutto


πŸ“† 09/03/2014

Delphi rad studio xe5 Android - Creare cartelle


// unit uses System.IOUtils
procedure TForm1.btnCopyClick(Sender: TObject);
begin
try
{ Copy directory from source path to destination path }
TDirectory.Copy(edSourcePath.Text, edDestinationPath.Text);
except
{ Catch the possible exceptions }
MessageDlg('Incorrect source path or destination path', mtError, [mbOK], 0);
Exit;
end;
end;

procedure TForm1.btnCreateClick(Sender: TObject);
begin
try
{ Create directory to specified path }
TDirectory.CreateDirectory(edSourcePath.Text);
except
{ Catch the possible exceptions }
MessageDlg('Incorrect path', mtError, [mbOK], 0);
Exit;
end;
end;

procedure TForm1.btnDeleteClick(Sender: TObject);
var
IsRecursive: Boolean;
begin
try
{ Check if the deletion method is recursive }
if cbIsRecursive.Enabled then
IsRecursive := true
else
IsRecursive := false;

{ Delete directory from specified path }
TDirectory.Delete(edSourcePath.Text, IsRecursive);
except
{ Catch the possible exceptions }
MessageDlg('Incorrect path', mtError, [mbOK], 0);
Exit;
end;
end;

procedure TForm1.btnIsEmptyClick(Sender: TObject);
begin
try
{ Check if the specified directory is empty }
if TDirectory.IsEmpty(edSourcePath.Text) then
MessageDlg('The specified directory is empty', mtInformation, [mbOK], 0)
else
MessageDlg('The specified directory is not empty', mtInformation, [mbOK], 0);
except
{ Catch the possible exceptions }
MessageDlg('Incorrect path', mtError, [mbOK], 0);
Exit;
end;
end;

Leggi tutto

Pagina selezionata  1

1