Drstein99
Well-known member
If I dim an array, and dont know how many items Im going to use hows the best approach? I know dimming something 1/2 way though the function will complete my task, and I also know its frowned upon as sloppy.
Ive included some sample code to get an idea of what im working with. Please advise thanks.
Dim nsPanel() As StatusBarPanel
Dim nsPanel1 As New StatusBarPanel
nsPanel1.AutoSize = StatusBarPanelAutoSize.Contents
nsPanel1.Text = "Goal Sales: 123"
nsPanel(0) = nsPanel1
Ive included some sample code to get an idea of what im working with. Please advise thanks.
Dim nsPanel() As StatusBarPanel
Dim nsPanel1 As New StatusBarPanel
nsPanel1.AutoSize = StatusBarPanelAutoSize.Contents
nsPanel1.Text = "Goal Sales: 123"
nsPanel(0) = nsPanel1