This function will allow you to get a part of a complete file specification that includes the path, name and extension.
|1 f/c/e||Required - File name to parse, must be of type A.|
|2 sac||Required - What part you want:|
pfPath - Returns just the path of the file name.
pfName - Returns just the name portion of the file name without path and extension.
pfExt - Returns just the extension portion of the file name.
RETURN TYPE - A
If the receiving field is not long enough the result will be truncated.
define x type a size 128
define y type a size 128
x = 'C:\ADV60\BKSOA.RWN'
y = parsefile(x,pfPath)
// y = 'C:\ADV60\'
y = parsefile(x,pfName)
// y = 'BKSOA'
y = parsefile(x,pfExt)
// y = 'RWN'