HP3000-L Archives

January 2002, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Erik Vistica <[log in to unmask]>
Reply To:
Erik Vistica <[log in to unmask]>
Date:
Thu, 10 Jan 2002 14:47:44 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
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 *

ATOM RSS1 RSS2