Where has Propercase gone!!

N

Nigel Vandyk

Hi
One of the handiest string functions is undoubtedly strconv which allows you
to convert a string to proper case.

It normally resides in Microsoft.Windows.VisualBasic but it doesn't seem to
be there for the Compact Framework. All the more puzzling as the constants
for the function VBbstrconv do seem to be there.

I suppose I can write my own function - or if someone has a neat Proper Case
conversion routine, perhaps they could let me know.

But has my favourite function gone - or is it just hiding under another name
or class?

--
With best wishes


Nigel Vandyk

Website:www.astarsoftware.co.uk
 
P

Peter Foot [MVP]

The function is not present in the Compact Framework however you can achieve
the same result with part of the base class library and therefore use the
same method from VB or C#:-

System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(yourvalue)

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top