Results 1 to 3 of 3

Thread: function to make a string capital on every word [RESOLVED]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    function to make a string capital on every word [RESOLVED]

    is there a built-in function to make every word in a string capitalize? I have a vb6 function to do this but I want to either re-write it or use a natively built function.
    Last edited by Andy; Mar 29th, 2004 at 10:44 PM.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    There is a function in vb called propercase to do this but I dont know if its in the .NET framework. You can find it in the Microsoft.VisualBasic namespace.

    VB Code:
    1. StrConv("this is a test", VbStrConv.ProperCase)
    Last edited by DevGrp; Mar 29th, 2004 at 10:38 PM.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    works like a charm!! That was in vb6? I don't recall that. Thanks a whole heck of a lot!!

Posting Permissions

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



Click Here to Expand Forum to Full Width