PPWIZARD Manual
[Bottom][Contents][Search][Prev]: Positional Parameters (not named)[Next]: Expand All Parameters As Rexx Code

Expand All Unused Parameters

The subject of macros is reasonably complex (but well worth learning) please ensure you have at least read the macro introduction before reading this section.

This option allows you to create a ppwizard macro for a html tag and process any parameters you wish while expanding any you don't specifically make use of. For example the following is a simplistic "IMG" tag front end:

    #define  IMG   <IMG SRC="graphics/{$FILE}" ALT="{$ALT='{$FILE}'}"{$?}>
    

Notice the "{$?}" tag above, it will expand all keywords used on a reference except "FILE" and "ALT". If there are specific keywords you don't want included then you should preceed this command with the parameter using '$$IGNORE'. If there were no keywords then nothing is expanded else a space preceeds the resultant keywords.

There are actually 2 modes of replacement, the above shows one mode where no "$$" Commands were used, if they were used then the commands are applied to each unused parameter in turn. In general one of the $$ commands would be a "pass" command.

Using the $$ commands gives you much more quoting flexability and gives you the option of not passing on the parameters, you may wish to simply memorise them for later use.


[Top][Contents][Search][Prev]: Positional Parameters (not named)[Next]: Expand All Parameters As Rexx Code

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Tuesday January 02 2001 at 7:37am