This is a variation of uppercase that uses a smaller font size for the letters. Small caps is often used for titles and headings.
Above text has to be convert into different cases like ( Sentence case, Uppercase, Lowercase & Toggle case).
Manjunatha
No of repeated alphabets in the above word.
Thanks in Advance
AshwinS2
(Ashwin S)
May 18, 2023, 11:53am
2
Hi @Pujari_Manjunatha
Try this for sentence case
System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(sss)
Try this for upper
Stringname.toupper
Try this for lower
String name.tolower
1 Like
Check this below code
Main.xaml (7.4 KB)
input: Manjunatha
output: a - 2
The second output should be like the above.
AshwinS2
(Ashwin S)
May 18, 2023, 12:20pm
5
Follow the below steps.
Take one Assign activity, set the “To” field to a variable of type Dictionary(Of Char, Integer) that will store the counts of each alphabet (e.g., alphabetCounts
).
2.In the “Value” field of the Assign activity, enter the following expression:
"Manjunatha".GroupBy(Function(c) c).ToDictionary(Function(g) g.Key, Function(g) g.Count())
Drag and drop a “Write Line” activity onto the workflow canvas.
String.Join(Environment.NewLine, alphabetCounts.Where(Function(kv) kv.Value > 1).Select(Function(kv) kv.Key & " - " & kv.Value))
system
(system)
Closed
May 21, 2023, 12:30pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.