Page 1 of 1

How to invert upper case letters and vice versa

Posted: Thu Jan 20, 2022 12:23 pm
by PZG
My goal is to invert uppercase letters with lowercase letters for the selected text.
I would also like to know if it is possible to capitalize the first letter of each word in the selected text.

Thank you

Re: How to invert upper case letters and vice versa

Posted: Thu Jan 20, 2022 3:57 pm
by giovani.erthal

Re: How to invert upper case letters and vice versa

Posted: Thu Jan 20, 2022 4:27 pm
by standay
This link has what I think you are after (if you want to do the code yourself):

https://lonewolfonline.net/delphi-strin ... onversion/

Inverting the case is the ToggleCase function, and the cap each letter is the TitleCase function.

Stan

Re: How to invert upper case letters and vice versa

Posted: Fri Jan 21, 2022 5:05 pm
by PZG
Thank you all for the help.