PDA

View Full Version : CVar'ing a string



clvestin
03-31-2007, 08:33 PM
I have a group of arrays of strings. call them namdata1 thru namdata6.
I want to loop thru them using the numeric index on the end of the name.
Thus, sayjig=CVar("namdata" & m)
where jig is defined as Variant.
Typename(jig) remains String. (THIS is the part i don't want to see!!!)

I've been messing with this in the immediate window, but I've defined all the variables as public and are addresable, ie ?namdata1(2) reads correctly.

Norie
04-01-2007, 05:31 AM
You just can't do that.:)

Why not try an array instead?