Subject: | |
From: | |
Reply To: | |
Date: | Thu, 10 Jan 2002 09:48:10 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I should add to my last mail, that this works fine.
Thanks Donna.
-----Original Message-----
From: Donna Garverick [mailto:[log in to unmask]]
Sent: Wednesday, January 09, 2002 7:02 PM
To: Richard Barker
Subject: Re: [HP3000-L] Command file quotes question
Richard Barker wrote:
> When examining character strings in MPE, how do people get around the
> potential extra quote problem, for example:
quotes drive me nuts! :-) i talked to jeff vance about this and he reminded
me of the 'anyparm' function (which is not the same thing as the anyparm
parameter). the documentation for this function is less than helpful (you
might want to ask out on the list....) but it appears to 'quote' your string
in something other than a single or double quote. (i guess the important
issue here is -- it doesn't really matter how it quotes a string as long as
it keeps ci happy.) here's a snippet from a script i wrote that you might
find helpful....
anyparm value=![""] <<<< this is the parameter line
setvar _o_single_q "'"
setvar _o_double_q '"'
setvar _o_value anyparm(!value)
setvar _o_value repl(_o_value,_o_single_q,"") <<<< replace all quotes....
setvar _o_value repl(_o_value,_o_double_q,'') <<<<...with nothing
_o_value eventually gets used in as an ';info=' string for a program. maybe
this will help.... - d
--
Donna Garverick Sr. System Programmer
925-210-6631 [log in to unmask]
>>>MY opinions, not Longs Drug Stores'<<<
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|