I ran into this when trying to create some command files for Java/iX. If
you have it installed, take a look at JAVASUB.PUB.SYS. It makes use of
the ANYPARM() function (thanks to Jeff Vance for suggesting this) and
the REPL() function (thanks to Lars).
SETVAR ADDR ANYPARM("L'ESPRIT "TEST" VACANCES")
SHOWVAR ADDR
SETVAR TEST,STR('![REPL(ADDR, "'", "''")]',11,6)
SHOWVAR TEST
Outputs:
ADDR = "L'ESPRIT "TEST" VACANCES"
TEST = "TEST"
Richard Barker wrote:
> Has anyone out there come up with a solution to this:
>
> When examining character strings in MPE, how do people get around the
> potential extra quote problem, for example:
>
> ADDR = "L'ESPRIT "TEST" VACANCES"
> SETVAR TEST,STR("!ADDR",11,6)
>
> SETVAR TEST,STR("L'ESPRIT "TEST" VACANCES ",11,6)
> ^
> A string operator was expected but none was found. (CIERR 9755)
>
> or in other cases you will get an unmatched quote mark.
>
> I've written a simple routine in Qedit to remove all quotes, but is there
> another way, using just MPE commands, without using a text editor.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|