-Original Message-
From: Stephen Moretti [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 7:27 AM
To: CF-Talk
Subject: Re: Val :: IncrementValue by 01 NOT 1? how?
Paul,
Can you explain from start to finish exactly what it is that you are trying
to do, please?
I've
Paul,
Can you explain from start to finish exactly what it is that you are trying
to do, please?
I've seen various posts for different bits of this problem on various lists
and I'm not sure how the whole thing fits together. If you could describe
exactly what it is that you have and what you w
If you are sure the number you increment contains 2 characters (Less
then 100) you can use this code. This can have any number of dots in the
project number.
firstnum = ListDeleteAt(form.proj_num,ListLen(form.proj_num,"."),".");
lastnum = ListLast(form.proj_num,".");
lastnum = lastnum + 1;
newpro
do something like
while (len(mynum) < 2) {
mynum = 0 & mynum;
}
basically prepend mynum with 0s until its 2 char long.
On
Mon, 29 Oct 2001, Paul Ihrig wrote:
> ok
> i can do this
>
>
>
>
>
>
>
>
> But how do i make it insert 01 instead of 1?
>
> -paul
>
~
Well this seems to work
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffu
with :
#num#
This will give 4 , then you can put it back to the lastNumber.
HTH
Sima
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 4:33 PM
To: CF-Talk
Subject: RE: Val :: IncrementValue by 01 NOT 1? how?
Sima
i grabed the last
-Original Message-
From: Sima Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 4:26 PM
To: CF-Talk
Subject: RE: Val :: IncrementValue by 01 NOT 1? how?
Hi Paul,
Can you treat the lastnumber as a string again and take the last number
of the lastNumber and increase it?
Or:
Did y
Hi Paul,
Can you treat the lastnumber as a string again and take the last number
of the lastNumber and increase it?
Or:
Did you try to take off all the "." and treat it as a number increase
it by 1, then insert the dot back. Of course you have to remember how
many dots you have took off and the
8 matches
Mail list logo