HP3000-L Archives

May 2003, Week 5

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:
"Schlosser, Robert J" <[log in to unmask]>
Reply To:
Schlosser, Robert J
Date:
Fri, 30 May 2003 15:02:01 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (77 lines)
Donna

        xword is documented in the 6.0 communicator

Robert Schlosser _ MPE-CSM
Ochsner Health Plan
(504) 219-8134 

-----Original Message-----
From: Donna Garverick [mailto:[log in to unmask]]
Sent: Friday, May 30, 2003 3:00 PM
To: [log in to unmask]
Subject: help with word function


hi all!

i'm wondering how to change the default delimiters for
word/xword.   here's the (rather un-)help(-ful) text
regarding delimiters:

            The default delims are a space, a comma,
            a semicolon, an equals sign, left and right
parentheses,
            left and right brackets, single quote, double
quote,
            and tab.

that's lovely....but how do you change the defaults?  with a
quoted string?  if you change the defaults, do your changes
override/replace the defaults?  or add to the defaults?

use the following string and code snippet as an example:

setvar x 'remote :node hello sesname,mgr/pass.account,group'

setvar i 0
setvar xx x
while xx > ' ' and i < 10
  setvar i i +1
  setvar x!i xword(xx,' .,/')
endwhile
showvar x@

(the i<10 is there to keep the code from going into an
endless loop <sigh>)

i want to extract each 'word' from the string contained in x
(or xx).  if my delimiters are a space, period, comma and
slash -- you'd think that code should work.  i should get
x1 = 'remote'
x2 = ':node'
x3 = 'hello'
...and so on....  but i don't :-(  any thoughts?           -
d

ps -- extra credit for finding the communicator that talks
about word or xword....

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<

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

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

ATOM RSS1 RSS2