🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.script-l
Article #10

Waterloo SCRIPT string functions

#10
From: Mark C. Lawrence
Date: Tue, 21 Jul 1992 18:58
22 lines
1250 bytes
REPLY TO 07/21/92 11:19 FROM SCRIPT-L@RICEVM1.BITNET "IBM vs Waterloo SCRIPT
discussion group": Waterloo Script string functions

>Date:         Tue, 21 Jul 1992 14:18:52 EDT
>From:         "Hannah Appl. Kaufman" <Q2201@PUCC.BITNET>
>Subject:      Waterloo Script string functions
>
>I am trying to create a padded string with leading zeros using
>Waterloo Script 88.1 functions and am having no luck.  The
>simplest would be the &'right function -
>
>.sr num = 11
>.sr newnum = &'right(&num,7,'0')

The problem is occurring in your .sr command; code it as

 .sr newnum = "&'right(&num,7,'0')"

otherwise, SCRIPT sees that you are substituting a numeric value,
and strips the leading zeros.

To:  SCRIPT-L@RICEVM1.BITNET
Technical Details
Message-ID: <SCRIPT-L%92072114013414@RICEVM1.RICE.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!psuvax1!psuvm!auvm!STANFORD.BITNET!M.LAWRENCE

Show Full Headers
Complete Article Headers
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!psuvax1!psuvm!auvm!STANFORD.BITNET!M.LAWRENCE
Message-ID: <SCRIPT-L%92072114013414@RICEVM1.RICE.EDU>
Newsgroups: bit.listserv.script-l
Date:         Tue, 21 Jul 1992 11:58:41 PDT
Sender:       "IBM vs Waterloo SCRIPT discussion group"
              <SCRIPT-L@RICEVM1.BITNET>
From:         "Mark C. Lawrence" <M.Lawrence@STANFORD.BITNET>
Subject:      Waterloo SCRIPT string functions
Lines: 22