Stretchwickster
Programmer
I need some advice on using dynamic arrays. Here is my code:
I get an error when I try to assign values to strArray. Does this mean I must assign values individually? Clive
Code:
Dim strHeadingNameArray() As String
If ... Then
ReDim strArray(1 To 8) As String
strArray = Array("Item", "Thing", "Misc", "Object", "Box", "Bag", "Pack", "Holdall")
Else
ReDim strArray(1 To 7) As String
strArray = Array("Bell", "Window", "Monitor", "Mouse", "PC", "HDD", "FDD")
End If
I get an error when I try to assign values to strArray. Does this mean I must assign values individually? Clive