Where has Propercase gone!!

  • Thread starter Thread starter Nigel Vandyk
  • Start date Start date
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
 
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
 
Back
Top