How we can achieve Converting all lower case letters into Upper and all upper case letters into lower in the string “heLLo WOrLd” For this Output should be “HEllO woRlD”
There may be other simpler ways to get this done but the approach should be same.
Here is a suggestion
First split the string to a char array
Iterate through the char array and for check if Char is in Upper Case, if yes set a new variable to take
Hope this helps. Here is the sample file.
StringOppositeCase.xaml (11.8 KB)
on of a few options:
String.Join("",YourStringVar.Select(Function (x) If(Char.IsLower(x), x.tostring.toupper, x.toString.tolower)))
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.