Post by ZouryHi Ken !
Did you know you can use a String array to receive the Split() result
instead of a Variant ? ;O)
Dim sTmp() As String
sTmp = Split(Arg, Delim)
--
Best Regards
Yanick
That one, I knew <g> How about creating a copy of an entire array with
ThisArrayVar = ThatArrayVar? Kinda' obvious but may come in handy....
'==========
Private Sub Form_Load()
Dim s1() As String
Dim s2() As String
Dim i1() As Integer
Dim i2() As Integer
s1 = Split("1,2,3,4", ",")
s2 = s1
s1(0) = "French" 'just to show that it's a copy and not a reference...
s2(0) = "Frys"
Debug.Print UBound(s2), s1(0), s2(0) 'Shows 3 French
Frys
ReDim i1(3)
i1(0) = 0
i1(1) = 1
i1(2) = 2
i1(3) = 3
i2 = i1
Debug.Print UBound(i2) 'shows 3 (as it should)
End Sub
'==========
Pretty cool (VB rules!)
--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..