RE: Val :: IncrementValue by 01 NOT 1? how?

2001-10-30 Thread Paul Ihrig
-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

Re: Val :: IncrementValue by 01 NOT 1? how?

2001-10-30 Thread Stephen Moretti
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

RE: Val :: IncrementValue by 01 NOT 1? how?

2001-10-30 Thread Pascal Peters
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

Re: Val :: IncrementValue by 01 NOT 1? how?

2001-10-29 Thread Alex
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 > ~

RE: Val :: IncrementValue by 01 NOT 1? how?

2001-10-29 Thread Paul Ihrig
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

RE: Val :: IncrementValue by 01 NOT 1? how?

2001-10-29 Thread Sima Lee
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

RE: Val :: IncrementValue by 01 NOT 1? how?

2001-10-29 Thread Paul Ihrig
-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

RE: Val :: IncrementValue by 01 NOT 1? how?

2001-10-29 Thread Sima Lee
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