🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: bit.listserv.script-l
1 messages
1 total messages Started by Mark C. Lawrence Tue, 21 Jul 1992 18:58
Waterloo SCRIPT string functions
#10
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads