HP3000-L Archives

March 1999, Week 3

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:
Glenn Cole <[log in to unmask]>
Reply To:
Date:
Tue, 16 Mar 1999 11:14:50 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
David Woodroffe writes:

> Can someone advise me on how to use HP functions such as LEN, RTRIM and
> EDIT when the input string contains a mix of single and double quotes.

It sounds like you're trying something like

        setvar string_len  len( "!some_string" )

While this works fine for strings without double quotes, the syntax is
more than what is actually necessary.  Instead, try

        setvar string_len  len( some_string )

It's rare that you need to evaluate (via '!') a string variable.
The only case that comes to mind is with 'echo'.

--Glenn

ATOM RSS1 RSS2