I have a scenario where I'm trying to build a loop with the pattern below. So it goes through the loop and prints out the pattern at the end. My issue is the array is throwing an exception when holding the pattern
pattern
*
**
***
****
***
**
*"
I'm having issues because the array is unable to hold the pattern. How else would I be able to construct this loop
Sub Main()
pattern = Array("'","'*","'**","'***","'**","'*"")
Dim patternstyle
'iterating using For each loop.
For each item in pattern
patternstyle = patternstyle&item&vbnewline
Next
msgbox patternstyle
End Sub