Results 1 to 4 of 4

Thread: capitalization

  1. #1
    Gary F Guest

    Default capitalization

    Is there an easy way to force the data in a textbox to make the first letter a capital. I have a textbox for first name and one for last name and if the user doesn't use a capital letter it looks terrible when I display the data from the database. Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: capitalization

    &#060;%<BR>lastName = LCase( Request("lastName") )<BR>lastName = UCase( Left( lastName, 1 ) ) & Mid( lastName, 2 )<BR>%&#062;<BR><BR>A little ugly but it works. If you use is a lot, turn it into a function.<BR><BR><BR>

  3. #3
    naik Guest

    Default RE: capitalization

    well while retreiving the data capture the data:<BR><BR>initcap(...)

  4. #4
    The Old Fart Guest

    Default great

    ...all he needs to know is how to code the initcap function. Which I think is what he was asking.<BR><BR>Bill<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts