home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: 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
-
- 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
-