g on
the column to be changed, so no untoward effects.
But I would never have got it except for the suggestions, which now all go
into the scrapbook for a time when there is no plan B. Thanks.
--
View this message in context:
http://www.nabble.com/question-about-find-and-replace-tp19737669p198
Just for diversity's sake, I have often used a function like the
following:
function zeroPad pText,pLength
repeat max(0, pLength - length(pText))
put "0" before pText
end repeat
return pText
end zeroPad
put zeroPad("13", 4) => "0013"
put zeroPad("5", 4) => "0004"
etc.
Recently, Peter
Peter Alcibiades wrote:
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
My solution, among the many:
function paddedList pList
put "" into tPadding
r
> answer format("%03s",1)
>
> will display 001 (the 3 means pad with zeros to 3 places). So if the
> decimal points in your number series are intentional, you could make a
> function like:
>
> function padNumbers pSeries
> repeat for each line tNum in pSeries
> put "." & format("%0
On 30.09.2008 at 8:54 Uhr +0100 Peter Alcibiades apparently wrote:
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
I know how to find them, using the fact that th
The same thing
answer format("%_3s",1) ??
instead of a zero use a dash would work so that you could make numbers line
up that are in a field left aligned instead of right aligned?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please vi
Recently, Peter Alcibiades wrote:
> How do you pad out a series of numbers with leading zeros? Like for instance
> the series is
>
> .1.
> .2.
> .3.
> .11.
> .42.
> .98.
>
> and you want them to be
>
> .001.
> .002.
> .003.
> .011.
> .042.
> .098.
You can use the format function. For example
Hi Peter,
Here's a possibility. Perhaps someone can come up with a shorter
version.
constant dot = "."
function formatDottedNumbers
set the numberformat to "000"
set the itemDel to dot
repeat for each line myLine in myData
put dot & item 2 of myLine * 1 & dot & cr after myNewData
How do you pad out a series of numbers with leading zeros? Like for instance
the series is
.1.
.2.
.3.
.11.
.42.
.98.
and you want them to be
.001.
.002.
.003.
.011.
.042.
.098.
I know how to find them, using the fact that they appear as shown between
two . characters, but then I don't know
[EMAIL PROTECTED] wrote:
B. What is the difference between selecting "This stack file" versus "This
stack" and "This stack file and its stack files"? I presume that "This stack
file and its stack files" refers to this stack and its substacks. What is the
difference between a stack file and
Steve, I meant look up "date".
JW
On Dec 31, 2006, at 3:36 PM, Joe Lewis Wilkins wrote:
Hi Steve,
First of all, you don't want to be doing this every year. I, also,
wrote a series of stacks used for Invoicing and Statements back in
1987 using HyperCard. These stacks were used for about 15 y
Hi Steve,
First of all, you don't want to be doing this every year. I, also,
wrote a series of stacks used for Invoicing and Statements back in
1987 using HyperCard. These stacks were used for about 15 years and I
never had to touch the scripting because I did not "hardwire" the
date info
I've used Revolution to create an invoice program consisting of a Main stack
and several substacks in which all the stacks contain "2006" as the last
word of their names. Now, for 2007, I want to change all the times "2006"
appears in the stack names and scripts to "2007". I've done this s
13 matches
Mail list logo