accept a string and convert the case of the characters [modified]
-
Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen
modified on Wednesday, May 27, 2009 5:17 PM
-
Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen
modified on Wednesday, May 27, 2009 5:17 PM
OP before modficiation
Member 4514218 wrote:
Hello Friends,
I like to accept a string and convert the case of the characters using vb .net
eg Input String : aBcDE
Output String : ABCDE
Output String : abcde
depanding on the user selectionThanks In Advance
PraveenMy Response
Check out the
String.ToUpper()
andString.ToLower()
methods, you can useRadioboxes
for the selection,
and read your class book before bringing homework here.The OP first asked how to make a string either all upper or all lower case based off user selection, which is why the above post exists here. Don't want you guys thinking I posted random garble :doh: See post below for response to *current* thread.
Check out the CodeProject forum Guidelines[^]
modified on Wednesday, May 27, 2009 5:39 PM
-
Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen
modified on Wednesday, May 27, 2009 5:17 PM
So you just want to flip each case? Way to change the requirements after I answer your other post. It usually goes against me to do someone's homework for them, and after I posted my other reply I initially had regret, going against my common practice. This time I stick to it, go read your book or you will fail your course.
-
Hello Friends, I like to accept a string and convert the case of the characters using vb .net eg Input String : aBcDE Output String : AbCde depanding on the user selection Thanks In Advance Praveen
modified on Wednesday, May 27, 2009 5:17 PM
Easy. Convert to ASCII, XOR all letters with 0x20, convert back to Unicode. :laugh: Now what should happen with some specials, such as the trademark and registered signs?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
OP before modficiation
Member 4514218 wrote:
Hello Friends,
I like to accept a string and convert the case of the characters using vb .net
eg Input String : aBcDE
Output String : ABCDE
Output String : abcde
depanding on the user selectionThanks In Advance
PraveenMy Response
Check out the
String.ToUpper()
andString.ToLower()
methods, you can useRadioboxes
for the selection,
and read your class book before bringing homework here.The OP first asked how to make a string either all upper or all lower case based off user selection, which is why the above post exists here. Don't want you guys thinking I posted random garble :doh: See post below for response to *current* thread.
Check out the CodeProject forum Guidelines[^]
modified on Wednesday, May 27, 2009 5:39 PM
EliottA wrote:
Don't want you guys thinking I posted random garble
Nah. Just making up random questions now? :wtf:
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
EliottA wrote:
Don't want you guys thinking I posted random garble
Nah. Just making up random questions now? :wtf:
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
-
Luc Pattyn wrote:
Just making up random questions now?
Those are the only ones I know the answer to :doh:
:thumbsup: Keep up the good work.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.