G
Guest
I'm trying to stuff a list of string values into individual array elements,
and I'm missing something stupid in the syntax.
Dim tIdents() As Variant, tString as string
Dim i As Integer, j As Integer
tString = "a,b,x"
tIdents = Array(tString) ' or Array(cvar(tString)) ?
j = UBound(tIdents)
For i = 0 To j: Debug.Print i & ": " & tIdents(i): Next i
everything gets stuffed into element 0. What am I missing here?
Thanks,
Kevin
and I'm missing something stupid in the syntax.
Dim tIdents() As Variant, tString as string
Dim i As Integer, j As Integer
tString = "a,b,x"
tIdents = Array(tString) ' or Array(cvar(tString)) ?
j = UBound(tIdents)
For i = 0 To j: Debug.Print i & ": " & tIdents(i): Next i
everything gets stuffed into element 0. What am I missing here?
Thanks,
Kevin