|
Previous Top Next |
The Utility Class derives from the Windows Class. It adds several lower level functions.
The Utility class has several very useful functions to do various things, such as create nested directories, format error message strings with or without file errors and many more. The Utility Class has it's own Construct and Destruct methods that set up queues that are used by the class.
ITUtilityClass Class(ITWindowsClass),TYPE,Module('ITUtilityClass.clw'),Link('ITUtilityClass',_ITUtilLinkMode_),DLL(_ITUtilDllMode_)
MSQ &IT_MS_Q
MultiFileSelPath CString(1025)
FontName CString(65)
FontSize Long
FontColor Long
FontStyle Long
FontCharset Long
CheckOplocks Procedure(),Byte
ColorToHtml Procedure(Long pColorValue),String
CompareCRC32 Procedure(String pBuffer, Ulong pCRC),Byte
CreateDirectories Procedure(String pDirectories, String pStartDir),Long,PROC ! Returns number of directories created
DirectoryExists Procedure(String pDirectory),Byte ! Returns true/false if the directory exists.
ErrorMsg Procedure(Byte pStdErr=True, Byte pFilErr=False, <String pSeparator>),String
FirstNonSpace Procedure(String pS),Long
GetCRC32 Procedure(String pBuffer),Ulong
GetClockFromString Procedure(String pClock),Long ! Takes clock value formatted in 'hh:mm:ss' and returns 1/100 seconds.
GetClockValue Procedure(Long pClock, Byte pIntervalMin, Byte pRoundUp),Long
GetCommandLineParam Procedure(String pFlag),String
GetExcelDate Procedure(Long pClarionDate),Long
GetFileInfo Procedure(String pFileName, Long pAtt=0, <*ANY pDate>, <*ANY pTime>, <*Long pSize>, <*Long pAttrib>)
GetFormatted100sec Procedure(Long pTime,<String pDelimiter>,<String pTimeFormat>),String
GetHour Procedure(Long pClock),Long
GetMinute Procedure(Long pClock),Long
GetUnixDateTime Procedure(*DECIMAL pUnixTime, <*Long pTime>),Long
HtmlToColor Procedure(String pHtmlColor),Long
LongToHex Procedure(Long pLong),String
MultiFileSelect Procedure(String pMfS),Long,PROC
SelectFont Procedure(String pCaption,<*String pFontName>,<*Long pFontSize>,<*Long pFontColor>,<*Long pFontStyle>,<*Long pFontCharset>),Byte
SetOplocksOff Procedure(),Byte
Construct Procedure
Destruct Procedure
End