Array to text

biderius
07-20-2003, 12:16 PM
Hy
I want to store the width of the cols from a ListView in the registry.
How can I get an Array to a String without putting it in a For-each function.
I know I have the Spilt()- function to seperate the values from the Array, but how can I get it into this string?
I don't want to use this:

With Me.lstArtikel.ColumnHeaders
For i = 1 To .Count
sValues = sValues & .Item(i).Width
Next i
End With

DrPunk
07-20-2003, 12:55 PM
It's fair to assume that if there is a Split, then it would be accompanied by a Join. And hey presto it is.
Dim sValues() as string
sValues = Split("Why are you splitting this?", " ") ' sValues now contains
' (Why, are, you, splitting, this?)
msgbox Join(sValues, " ") ' Displays "Why are you splitting this?"

biderius
07-20-2003, 01:07 PM
Thanx for the quick reply. :-D
But I have seen, that i have to do it with a For-each :-(

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum