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

Utility Class Equates

Previous  Top  Next  


The Utility class uses the following Equates in splitting file and path information:

 

FNS_Drive                EQUATE(01h)

FNS_Path                 EQUATE(02h)

FNS_File                 EQUATE(04h)

FNS_Ext                  EQUATE(08h)

FNS_FullPath             EQUATE(FNS_Drive+FNS_Path)

FNS_FileName             EQUATE(FNS_File+FNS_Ext)

 

 

When using the GetFilePart method these equates are used to determine what parts of the filename are returned.

 

Example

 

ITU  ITUtilityClass

 

FN   CString(1025)

FP   CString(1025)

Code

FN = 'C:\Clarion6\LibSrc\ABFILE.CLW'

FP = ITU.GetFilePart(FNS_Drive)          ! Returns 'C:'

FP = ITU.GetFilePart(FNS_Path)           ! Returns '\Clarion6\LibSrc\'

FP = ITU.GetFilePart(FNS_File)           ! Returns 'ABFILE'

FP = ITU.GetFilePart(FNS_Ext)            ! Returns '.CLW'

 

FP = ITU.GetFilePart(FNS_File+FNS_Ext)   ! Returns 'ABFILE.CLW'

FP = ITU.GetFilePart(FNS_Drive+FNS_Path) ! Returns 'C:\Clarion6\LibSrc\'

 

 

 

 



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