|
Previous Top Next |
Prototype: | (String pFileName) |
pFileName | Name 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
S 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: