Not @Propercase, But @Scottishcase!

We sell some products under the brand name McDougalls. On our AS/400 system,
the product descriptions are all in uppercase. I have created an application
which takes the product description and creates a letter document which
contains a computed field with the product description in proper case.
However, moaned my user, we don't want it to say Mcdougalls, we want it to say
McDougalls!

This small formula does the job for any string which may contain mcdougalls as
it's first word. Variations of this could be used for any of those annoying
scottish names...
Note that Prodname needs to be replaced with the field you are converting...
@If(@UpperCase(@Left(ProdName;10))="MCDOUGALLS" ; "McDougalls " +
@ProperCase(@Right(Prodname; " ")) ; @ProperCase(Prodname) )
This was first published in November 2000

Dig deeper on Domino Resources - Part 7

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close