I have a string “rms home”. How can i make it so that it is “RMS Home” using the assign activity? So capitalise RMS and H i.e. each letter of each word will be capital
MyStr = "rms home", you can convert it by assigning
String.Concat(MyStr.Substring(0, 5).ToUpper, MyStr.Substring(5, 3).
This works however what if my string is “rms technology” Is there a way to make this activity dynamic as the string variable will change length?
String.Concat(MyStr.Substring(0, 5).ToUpper, MyStr.Substring(5, MyStr.Length - 5).
have a look on this thread as well
Abbrevations / Terms maybe has to handled via List of known terms as there is not a rule to detect it by default
I agree with ppr. Typically, you can use a function to capitalize the first letter in each word, but when it comes to acronyms like rms, you would have to have to handle them a bit more dynamically.
If I just had a string “home technology”, how could I make it “Home Technology”?
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.