Remove CN

Have you ever needed to remove the CN= prefix from query results in VBScript. The following function has proved useful for me in a variety of situations. Enjoy!
<pre> Function removeCN(inputString)
Dim textValue
textValue = inputString
Dim textLength
textLength = Len(textValue)
textValue = Right(textValue, textLength-3)</pre>
<pre> removeCN = textValue</pre>
<pre> End Function</pre>

Powered by WordPress with [GimpStyle]
Entries and comments feeds.