www.icetips.com  Icetips Utilities Documentation 11/30/2010    

Utility Class: GetFileInfo

Previous  Top  Next  


Prototype:  (String pFileName, Long pAtt=0, <*ANY pDate>, <*ANY pTime>, <*Long pSize>,<*Long pAttrib>)

 

pFileNameFull path name of the file to get information about.

 

pAttSpecifies the ff_ file attributes

 

[pDate]The date of the file.  This can be a LONG or a DATE variable.  You must specify variable in the call or omit this parameter.

 

[pTime]The time of the file.  This can be a LONG or a TIME variable.  You must specify variable in the call or omit this parameter.

 

[pSize]The size of the file.  You must specify variable in the call or omit this parameter.

 

[pAttrib]The attributes of the file.  You must specify variable in the call or omit this parameter.

 

This method will retrieve information about the file passed as pFileName.  Note that date, time, size and attributes are passed by address not value so it is up to you to create variables that are used when calling this method.  pDate and pTime can be LONG or DATE/TIME variables so this will work with program variables as well as table columns from SQL tables etc.

 

this method does not return a value, rather it returns multiple values.

 

Example:

 

FD   Long

FAT  Long

FT   Long

FS   Long

FA   Long

F    CString(1025)

ITU  ITUtilityClass

Code

FAT = ff_:Normal

F = 'C:\Clarion\Apps\MyTest\Test.app' ! Jan 1, 2006 at 13:01:40, 12345 bytes.

ITU.GetFileInfo(F,FAT,FD,FT,FS,FA)

! FD is now equal to the date value for Jan 1, 2006

! FT is now equal to the clock value for '13:01:40'

! FS is now equal to 12345

! FA is now equal to ff_:Normal

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getfileinfo_utility.htm