Shandy's Blog

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

This blog hosted by:
http://blogs.vbcity.com      
  Home :: Syndication  :: Login

My name is Andrew Sutton, aka Shandy.

I am currently living and working in the UK within the garment industry as an IT specialist. 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

SepOctober 2008Nov
SMTWTFS
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

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