PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: Rexx Example[Next]: REXAMPLE.XH
\ -> Examples / Tips -> Rexx Preprocessing -> Rexx Example -> REXAMPLE.X

REXAMPLE.X

;----------------------------------------------------------------------------
;    MODULE NAME:   REXAMPLE.X
;
;        $Author:   USER "Dennis"  $
;      $Revision:   1.0  $
;          $Date:   30 Mar 2001 18:05:34  $
;       $Logfile:   C:/DBAREIS/Projects.PVCS/MultiOs/PPWIZARD/rexample.x.pvcs  $
;
;    DESCRIPTION:   Small example routine.
;
;----------------------------------------------------------------------------

/*--- Want the following comment in the generated output --------------------*/
/*
 * $Header:   C:/DBAREIS/Projects.PVCS/MultiOs/PPWIZARD/rexample.x.pvcs   1.0   30 Mar 2001 18:05:34   USER "Dennis"  $
 */


/*--- I want all my routines to (1) be procedures & (2) Expose some variables ---*/
#define Procedure  procedure expose Variable1 Variable2


/*--- Load supporting routines ----------------------------------------------*/
#define  INCL_StringReplace
#define  INCL_AddCommas2DecimalNumber
#include "REXAMPLE.XH"


/*--- Make a few changes and Generate the output message --------------------*/
Count  = 0;                                             ;;Initialize Counter (this is a PPWIZARD comment)
String = StringReplace('AAAA', 'A', 'B', "Count");      /* Make some changes (this is a REXX comment) */
if Count = 0 then
   say 'No Changes made';
else
   say 'Count = ' || AddCommas2DecimalNumber(Count);
return(Count);



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

[Top][Contents][Search][Prev]: Rexx Example[Next]: REXAMPLE.XH


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