Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: Number Formatting (0001 instead of 1)(Solution)


Message #1 by "Nilesh Parekh" <nilesh_parekh@d...> on Thu, 24 Jan 2002 14:44:57 +0530

This is a multi-part message in MIME format.



------=_NextPart_000_0131_01C1A4E5.B1A3E9A0

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Hi Charles,



Try this code.



b =3D convert(28)

Response.Write b



function convert(a)

    convert =3D string(4 -len(a) , "0") + cstr(a)

end function



cheers,

Nilesh



  ----- Original Message -----

  From: Charles deRees

  To: ASP Web HowTo

  Sent: Wednesday, January 23, 2002 10:40 PM

  Subject: [asp_web_howto] Number Formatting (0001 instead of 1)





  Any one got a function which will display numbers with leading zerors, 



  example : instead of 1,2,3 I would like to display 0001,0002,0003.



  Charlie




$subst('Email.Unsub').







  Return to Index