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:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Thu, 10 Jan 2002 19:50:27 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
...
> the documentation for this function [anyparm] is less than
> helpful...

I wrote the help text for the anyparm() function, so I apologize
if I didn't make it clear enough.

Here it is:

Syntax:     ANYPARM(anything)

Defn:       A CI evaluator function that accepts all characters,
            including commas, quote marks, right parentheses, etc.
            and treats them as a single string value.

            NOTE: the anyparm() function must be the only or right-most
            function in a command line.  Also, anyparm() cannot be
            nested inside other functions.  For example,
                 lft(anyparm(...),1)
            and
                 anyparm(...) + "foo"
            are NOT supported.

Type:       String

Example:    CALC anyparm(abc'def,gh"i)j)k;lm)
Result:     abc'def,gh"i)j)k;lm
Example:    ANYPARM p1
            setvar _infostr anyparm(!p1)
            run prog; info="![quote(_infostr)]"

====================

One problem is I use the deprecated quote() function in an example.
I think the main point I was trying to make is:

  don't used compound CI expressions in conjunction with the anyparm()
function.  This is because anyparm() accepts everything to the right
of the leading "(", up to the matching ")" as its argument, and thus
as its function return.

For example:
  :calc anyparm((((asas(sasa)
(((asas(sasa

works.

Sorry,
 Jeff

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2