PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
FilePart() |
This is an inbuilt function function provided by PPWIZARD.
This function takes two parameters as follows:
Only the first character is required, if more than one character provided then the complete name should be supplied.
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.
Example |
;--- Capture some HTML information --- #evaluate ShortNameHtml ^FilePart('name', '<?OutputFile>')^