userfunctions
文章来源: stockupupup2011-07-08 11:01:56

Generic Library:
f_SelectFile(sFilePath,sFilePathandName)
This function returns the select file name and its path through sFilePathandName. sFilePath is for default file path.

f_CreateFolder(sFolderPath,sFolderName)
This function returns True if the new folder was created.


f_GetCurrentTime(iTimeformat,dCurrentTime)
This function returns the current time in 12h (1) or 24h (2) format. 12:01:01AM or 23:45:23PM

f_GetCurrentDate(iDateFormat,dCurrentDate)
This function returns the current date in the following Mode:

1. Short format
12/30/2011
2. Short format
2011.12.30
3. short format
30/12/2011
4. short format
Dec 30, 2011
5. short format
30 Jun 2011
6. long format
Monday Dec 30, 2011
7. long format
Monday December 30


f_GetCurrentDateTime(iDateTimeFormat,dCurrentDateTime)
This function returns the current date and time in the following Mode:
December 30, 2011 12:30:30AM