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
> 
> <cfoutput>
> <cfset firstnumber = listfirst(#FORM.Proj_Num#,".")>
> <cfset lastnumber = IncrementValue(listlast(#FORM.Proj_Num#,"."))>
> <cfset MyNum = "#firstnumber#.#lastnumber#">
> <CFSET Proj_Num2 = #MyNum#>
> </cfoutput>
> 
> But how do i make it insert 01 instead of 1?
> 
> -paul
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to