initialize an array?

  • Thread starter Thread starter Dave Cullen
  • Start date Start date
D

Dave Cullen

Ii want to create an array of error messages (strings) in a module. Is
there any way to do that without having a sub or function that assigns
each element individually? Can the values of array contents be assigned
when the array is declared?
 
Perhaps internally you can use an arraylist, and provide a function to
return the underlyin array?
 
Ii want to create an array of error messages (strings) in a module. Is
there any way to do that without having a sub or function that assigns
each element individually? Can the values of array contents be assigned
when the array is declared?

sure.

Dim messages() As String = {"one", "two", "three"}
 
Back
Top