www.icetips.com  Icetips Utilities Documentation 5/9/2015    

Core Class: SplitFileParts

Previous  Top  Next  


Prototype:  (String pFileName)

 

pFileNameName of the file to split up

 

This method splits up a filename that is passed to it into drive, directory, filename and extension.  These parts are stored in the FileParts group derived from FNS_Parts.  The method does not return any data, instead access the group components directly, see below.  The FileParts group is cleared on each call to SplitFileParts so you can not rely on information from previous call to be available after a second call to SplitFileParts.

 

Example:

 

ITC  ITCoreClass

String(1024)

Code

S = 'C:\Clarion\Apps\MyApp\MyApp.exe'

ITC.SplitFileParts(S)

Message('File parts: ' &|

        'Drive: ' & ITC.FileParts.P_Drive &|

        '|Dir:  ' & ITC.FileParts.P_Dir &|

        '|File: ' & ITC.FileParts.P_File &|

        '|Ext:  ' & ITC.FileParts.P_Ext)

 

See also:

GetFilePart

 

 

 



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