Posted By

f0vela on 03/13/08


Tagged

ASP letter uppercase first


Versions (?)

Uppercase first Letter


 / Published in: ASP
 

  1. function firstUpper(text)
  2.  
  3. firstUpper = text
  4. if text = "" then exit function
  5.  
  6. largo = len(text)
  7. rightxt = right(text,largo-1)
  8. leftxt = ucase(left(text,1))
  9. completo = leftxt&rightxt
  10.  
  11. firstUpper = completo
  12.  
  13. end function

Report this snippet  

You need to login to post a comment.