HP3000-L Archives

August 1999, Week 4

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:
Wed, 25 Aug 1999 14:11:31 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
> If you do a SETVAR P1 "!!HPACCOUNT"
> Then SHOWVAR P1, you get !HPACCOUNT
> Then if you do a SETVAR P2,ANYPARM(!P1)
> I would expect to find !HPACCOUNT in the P2 variable. But
> instead I find the actual account name.

The ANYPARM function is not the culprit here.  Any time you
explicitly dereference a variable (!varname) you will resolve
all embedded explicit varnames.  So,
   :setvar blue 'BLUE'
   :setvar color '!!blue'
   :showvar color
   COLOR = !blue
   :echo color = !color
   color = BLUE

Jeff Vance, CSY

ATOM RSS1 RSS2