home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / bit / listserv / scriptl / 45 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.2 KB  |  34 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!wupost!psuvax1!psuvm!auvm!STANFORD.BITNET!M.LAWRENCE
  3. Message-ID: <SCRIPT-L%92072114013414@RICEVM1.RICE.EDU>
  4. Newsgroups: bit.listserv.script-l
  5. Date:         Tue, 21 Jul 1992 11:58:41 PDT
  6. Sender:       "IBM vs Waterloo SCRIPT discussion group"
  7.               <SCRIPT-L@RICEVM1.BITNET>
  8. From:         "Mark C. Lawrence" <M.Lawrence@STANFORD.BITNET>
  9. Subject:      Waterloo SCRIPT string functions
  10. Lines: 22
  11.  
  12. REPLY TO 07/21/92 11:19 FROM SCRIPT-L@RICEVM1.BITNET "IBM vs Waterloo SCRIPT
  13. discussion group": Waterloo Script string functions
  14.  
  15. >Date:         Tue, 21 Jul 1992 14:18:52 EDT
  16. >From:         "Hannah Appl. Kaufman" <Q2201@PUCC.BITNET>
  17. >Subject:      Waterloo Script string functions
  18. >
  19. >I am trying to create a padded string with leading zeros using
  20. >Waterloo Script 88.1 functions and am having no luck.  The
  21. >simplest would be the &'right function -
  22. >
  23. >.sr num = 11
  24. >.sr newnum = &'right(&num,7,'0')
  25.  
  26. The problem is occurring in your .sr command; code it as
  27.  
  28.  .sr newnum = "&'right(&num,7,'0')"
  29.  
  30. otherwise, SCRIPT sees that you are substituting a numeric value,
  31. and strips the leading zeros.
  32.  
  33. To:  SCRIPT-L@RICEVM1.BITNET
  34.