How to invert upper case letters and vice versa

General TRichView support forum. Please post your questions here
Post Reply
PZG
Posts: 3
Joined: Wed Sep 15, 2021 11:36 am

How to invert upper case letters and vice versa

Post 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
standay
Posts: 272
Joined: Fri Jun 18, 2021 3:07 pm

Re: How to invert upper case letters and vice versa

Post 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
PZG
Posts: 3
Joined: Wed Sep 15, 2021 11:36 am

Re: How to invert upper case letters and vice versa

Post by PZG »

Thank you all for the help.
Post Reply