Lower/Upper case

TonySh

New Member
Hi there,

Does anyone have a code that would convert the 1st letter of a sentence to an upper case character and the rest of the sentence to a lower case?

Thank you.
 

arekp

New Member
Maybe something like this:

def var txt as char.

txt = "TeSt WoRd".

txt = LC(txt).
substring(txt,1,1) = CAPS(substring(txt,1,1)).


Best reg.
Arek


TonySh said:
Hi there,

Does anyone have a code that would convert the 1st letter of a sentence to an upper case character and the rest of the sentence to a lower case?

Thank you.
 

TonySh

New Member
I actually have a big text with many sentences. Each and single word in this text begin with a capital letter. What I need is to make all words lower case and start each sentence with upper case letter. I also have to compile a list of exceptions, such as states, countries, cities names, some abbreviations that should be excluded from any conversion.

Thank you.
 
Top