Shandy's Blog

Where Andrew Sutton, aka Shandy rants and rambles on as the fancy takes him

vbCity Blogs moved to:
http://cs.vbcity.com/blogs
  Home :: Syndication  :: Login

My name is Andrew Sutton, aka Shandy.

I am currently living and working in the UK as a software developer. This blog contains mainly IT related issues.

I was a Microsoft VB MVP for a couple of years (Apr 2004-Mar 2006) and was a vbCityLeader between April 2003 and June 2007.

If you are looking for my Sri Lanka or Morocco experiences check out Shandy's Sri Lanka Blog or Shandy's Morocco Blog. My personal (Non IT) blog is now at Shandy's Place

JanFebruary 2010Mar
SMTWTFS
31123456
78910111213
14151617181920
21222324252627
28123456
78910111213

Articles

Archives

Topics

Image Galleries

.NET

Blogs I Read

Others

VB.Classic

A piece of code I came up with whilst trying to solve a post at vbCity was what I term Combine. It basically does the opposite of Split and creates a string out of a single dimensional array.

Private Function Combine(ByVal oVvArray As Variant _
                        , ByVal strVvDelimiter As String _
                        ) As String
    Dim intLvIndex As Integer
    For intLvIndex = LBound(oVvArray) To UBound(oVvArray)
        Combine = Combine & CStr(oVvArray(intLvIndex)) & strVvDelimiter
    Next
    Combine = IIf(Right$(Combine, Len(strVvDelimiter)) = strVvDelimiter _
                 , Left$(Combine, Len(Combine) - Len(strVvDelimiter)) _
                 , Combine _
                 )
    
End Function
posted on Wednesday, July 20, 2005 8:00 PM