Capitalize each first letter in a sentence - ProperCase

Hello all,
Is there anyway i can Capitalize each first letter in a sentence.

i was thinking of something like:
to capitalize the first letter.

But after a fullstop how would i do this?

Thank you

your logic will only capitalize first letter of first word only.

I will suggest firstly split the string by space (" ") and than take one for each loop , and than apply your logic and also keep adding converted item into array or list

or you also try .ToTitleCase()

The expression be like this
arr_lines = Split(str_input.”.”)
Where arr_lines is a variable of type array of string
—now use a FOR EACH loop and pass the above variable as input
And inside the loop use a assign activity like this
list_str = StrConv(item.ToString,vbstrconv.ProperCase)

Where list_str is a variable of type list of string with default value as new list(of string) defined in the variable panel

—now next to this for each loop use a assign activity like this
Str_output = String.Join(“ “,list_str.ToArray())

Cheers @Rowley101

Try using
Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(“this is some text”)


StrConv(YourStringVar, VbStrConv.ProperCase) just to have an alternate option, should run over the entire Sentence string



You can download this activity from GO Package source and try Title Case to do this. Please check below thread for your reference.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.