Subject |
Re: proper() |
From |
charlie <tm@tc.com> |
Date |
Sat, 12 Apr 2025 13:03:47 -0400 |
Newsgroups |
dbase.getting-started |
Hey.. I found no reference to breakstring() in dulfp or dbase help.
Akshat Kapoor Wrote:
> Good Evening Charlie,
>
> > Trying to use proper() on dbase and instead of the first word only being upper case I get this:
> >
> > x = "I live in a condo."
> > proper(x)
> > I Live In A Condo.
> >
> > Happens using 2019 and 11.
> >
> > Is this the way it is supposed to work? Is there a function like proper for entryfields?
>
> Copying and pasting from help file
>
> PROPER( ) returns <expC> with the first character in each word
> capitalized and the remaining letters set to lowercase. PROPER( )
> changes the first character of a word only if it is a lowercase
> alphabetic character
>
> Please note the wording "each word". Hence I would say it is WAD.
>
> If you want output to be "I live in a condo" then in that case use
> breakstring() (it is there in duflp) to break the phrase into sentences
> and then convert the first to upper case followed by rejoining all.
>
> Regards
> Akshat
|
|