Var string to array

Hi everybody
I’m storing concatenated string into string var myVar to match the coding syntax of a array
then putting this var myVar in my declaration of array to convert all string in a array of string

Dim witdhz() As string witdhz = Array(myVar)
In the debuger i can see my array contain only one entry
“8.5”,“8.5”,“3.5”,“8.5”,“8.5”
even so i have the right syntax ( double quote…data…double quote…comma
what i’m missing
Thanks

To turn a concatenated string into an array you need to use the Split function.

The Array function must be used explicitly within your code (not with variables)

If you have a string and want to turn it into an Array. Use the split method:

  witdhz = split(myVar, ",") 

Very simple
Thank you