VB6 - Defining a String Array
arrays, syntax, vb6
Solution
Dim s
s = Array("a", "b", "c", "d")
Problem
I need to use VB6 and I'm struggling with a few basic tasks. When I define an array in C# for example: ``` string[] s = {"a", "b", "c", "d" }; ``` But in VB6, I've been doing this: ``` Dim s(0 To 3) As String s(0) = "a" s(1) = "b" s(2) = "c" s(3) = "d" ``` Is there a more efficient way of defining an array in VB6 than the example I illustrated above? A way similar to the C# approach?