Capitalize first letter of each word - InfoPath Dev
in

InfoPath Dev

Capitalize first letter of each word

Last post 04-07-2010 07:38 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-06-2010 08:46 PM

    Capitalize first letter of each word

    Hi All,

    This is my first post. I am a newbie  for infopath. I want to capitalize first letter of each word in a sentence (Ex: "this is text" Result: "This Is Text"). I know how to do it for one word but not for the entire sentence. Any help would be really appreciated.

     

    Thanks in advance,

    Sudha.

  • 04-07-2010 07:38 AM In reply to

    Re: Capitalize first letter of each word

    Hi Sudha and welcome to the forum,

    • Good news: you are lucky that I used to be a computational linguist (Kaoru too).
    • Bad news: this is not an InfoPath related question and this forum is limited to InfoPath and related technologies. 

    Assuming you can correctly detect the beginning of a word (not always the case, but usually easy for English), you can just call a .NET API to capitalize the character or use 0x20 to XOR out the lower cap character if it exists.

    Happy .NET coding ....

     

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.