PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: FileOpenReadOnly()[Next]: FileQueryDateTime()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> FilePart()


This is an inbuilt function function provided by PPWIZARD.

This function takes two parameters as follows:

  1. The part of the filename to extract. Valid options are:

    Only the first character is required, if more than one character provided then the complete name should be supplied.

  2. The name of the file.

The return value is the extracted component you requested. It is important to note that a partial filename is not converted to its full name before extraction, the part is extracted from what you supply. It is also assumed that the filename is of a valid format.

There is a $$FILEPART transformation which can be very useful. It makes use of this rexx call during macro replacement.


;--- Capture some HTML information ---
#evaluate  ShortNameHtml  ^FilePart('name', '<?OutputFile>')^

email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: FileOpenReadOnly()[Next]: FileQueryDateTime()

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am