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:
Reply To:
Date:
Wed, 9 Jan 2002 13:37:28 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
X-no-Archive:yes
There may be a less painful way to do this, but this does work. My grasp of
dereferencing is not as strong as it should be, so if Jeff Vance has a
cleaner way to do this, I look forward to seeing it. Actually, I wouldn't
mind a cogent explanation of WHY this works! ;-)

:setvar addr "L'ESPRIT ""TEST"" VACANCES"
:echo !addr
L'ESPRIT "TEST" VACANCES
:setvar test word(!["addr"]," ",2)
:echo !test
"TEST"

1) set the variable.
2) echo it.
3) set the variable, keeping CI from interpreting the contents of !ADDR
before WORD gets to delimit the contents by spaces only (the ," " element
passed to WORD), so that you get the second space-delimited element of your
string.
4) echo it.
5) be surprised that it worked.

Greg Stigers
http://www.cgiusa.com
================================
All progress, all success, springs from thinking - [log in to unmask]

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

ATOM RSS1 RSS2