Uppercase first Letter


/ Published in: ASP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.