We Recommend

ASP.NET 3.5 Unleashed ASP.NET 3.5 Unleashed
ASP.NET 3.5 Unleashed is the most comprehensive book available on the Microsoft ASP.NET 3.5 Framework, covering all aspects of the ASP.NET 3.5 Framework--no matter how advanced.


Ballyhoo


Posted By

f0vela on 03/13/08


Tagged

number to ASP cero aspadd


Versions (?)


Add 0 to a one digit number


Published in: ASP 


  1. function a0(n)
  2. n = trim(n)
  3. a0 = n
  4.  
  5. if trim(n) = "" then exit function
  6.  
  7. n = cstr(n)
  8.  
  9. if len(n) < 2 then n = "0" & n
  10. a0 = n
  11. end function

Report this snippet 

You need to login to post a comment.