HP3000-L Archives

February 1999, 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:
Glenn Cole <[log in to unmask]>
Reply To:
Date:
Thu, 11 Feb 1999 16:25:46 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
John Krussel writes:

> I'm using the "ANYPARM" parameter to pick up a long string in a command
> file.  The string may or may not have embedded quotes in it, they maybe
> single quotes or double quotes.

There's a relatively new function called anyparm() that seems to do the
trick.  For example:

        :print gctest
        anyparm myparm
        setvar  myvar  anyparm(!myparm)
        echo !myvar
        :
        :gctest 'abc"def
        'abc"def
        :

In your original example (snipped), you should be able to use
anyparm(!P2) in place of "!P2" -- note the *absence* of quotes
with anyparm().

For details, see Jazz:

http://jazz.external.hp.com/papers/Communicator/5.5/mpejxq1.html#EVAL

--Glenn Cole
  Software al dente, Inc.
  [log in to unmask]

.......................................................................

Item Subject: cc:Mail Text

ATOM RSS1 RSS2