Subject: | |
From: | |
Reply To: | VANCE,JEFF (HP-Cupertino,ex1) |
Date: | Thu, 10 Jan 2002 19:50:27 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
...
> 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 *
|
|
|