On the subject of string concatenation I realise that I’ve been overlooking an obvious shortcut.
I’ve realised now that the split function is great for turning strings into arrays:
Array = Split(String, WhatToSplitOn)
But there’s also the join function:
String = Join(Array,WhatToPutInBetweenEachElement)
It may not work everywhere but if you’re doing this:
For Each ThisItem in TheseItems
Element = Elements & “
” & ThisItem
You can easily replace it with:
Element = Join(TheseItems,”
Which is not only faster, but more concise as well. It still needs some work before I can use it everywhere, but with this and the text stream method I should hopefully have put an end to string concatenation in my code.