PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: Info()[Next]: InputComponentLineLevel()

InputComponentLevel()

This is a rexx function provided by PPWIZARD. This routine (like all PPWIZARD extensions) can be used with any operating system supported by PPWIZARD.

This routine takes a single parameter which is the include level that you are interested in. The full name of the input file at that level is returned.

If you don't pass any value then the current level is assumed. If you pass an invalid value the empty string ("") is returned.

This rexx routine does a similar job to the "<?InputComponent>" special variable (but for any level - not just the current one).

Stupid Example

Simple example in which one file works out who included it and at what line:

    ;--- Work out who included this file (and what line) ---
    #evaluate ParentFile  ^InputComponentLevel(<?IncludeLevel>-1)^
    #if  '<$ParentFile>' = ''
         <P>There is no parent file!
    #elseif
         #evaluate ParentLine  ^InputComponentLineLevel(<?IncludeLevel>-1)^
         <P>The parent file is: "<$ParentFile>" (line <$ParentLine>)
    #endif
    


[Top][Contents][Search][Prev]: Info()[Next]: InputComponentLineLevel()

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Thursday January 17 2002 at 6:27pm