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:
Jeff Vance <[log in to unmask]>
Reply To:
Jeff Vance <[log in to unmask]>
Date:
Tue, 16 Mar 1999 11:31:17 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (23 lines)
On Mar 16,  8:36am, David Woodroffe wrote:
> 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. Input
> strings are being read from a file.

psuedo code:

   while not eof do
      input _var
      # _var contain both quote characters (' and ")
      calc len(_var)
      echo LEN of _var = ![len(_var)]
      setvar foo rtrim(_var)
      setvar quote '"'
      setvar quote2 '""'
      run pgm;info="!_var"         # doesn't work!!!!!!!!!
      run pgm;info="![repl(_var,quote,quote2)]"
   endwhile

Jeff Vance, CSY

--

ATOM RSS1 RSS2