Click to See Complete Forum and Search --> : detect end of CAPS text in string


GeertL
October 6th, 2006, 02:29 AM
Hi,

Maybe a simple question...

I have a column in my database which looks like this : FAMILYNAME prename
also FAMILY NAME pre name ... etc is possible.

I need to split up the familyname (which is in Ucase) and the surname which always is in lcase.

Anyone has a solution?

tnx in advance

GeertL
October 6th, 2006, 08:19 AM
found something that works :

For Each c In sName
If Char.IsUpper(c) Then
sFname = sFname & c
Else
sSurname = sSurname & c
End If
Next