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 function will determine a quote character that is not contained within the string you pass. Processing will abort if it can not do so.
The function takes 2 parameters:
This routine is handy when a macro is passed some information and needs to generate the data in a quoted format. Some languages such as HTML allow information to be quoted with either a single or a double quote.
#evaluate '' ~RxQuote=QuoteIt('AS"DF')~
Should be double = <??RxQuote>
#evaluate '' ~RxQuote=QuoteIt("AS'DF")~
Should be single = <??RxQuote>
#evaluate '' ~RxContainsBothQuotes = 'AS"' || "'DF"~
#evaluate '' ~RxQuote=QuoteIt(RxContainsBothQuotes, '"' || "'^")~
Should be '^' = <??RxQuote>
#evaluate '' ~RxQuote=QuoteIt(RxContainsBothQuotes)~ ;;Will die