
Object variable or With block variable not set (Error 91) Please Help
I have created a class with a user-defined type ChartBar:
Private Type ChartBar
mpicBar As PictureBox
mdtDay As Date
msngOpen As Single
msngHigh As Single
msngLow As Single
msngClose As Single
mintVolume As Integer
mintOpenInt As Integer
End Type
I then create an array of these ChartBars:
Private mcbTechChart() As ChartBar
I have a function later in the classthat assigns values to the
ChartBar member variables. All of the non-object variables work fine,
but when I try to set properties of the mpicBar:
mcbTechChart(ctr).mpicBar.Width = 100
I get the error 91 message -> object variable or with block variable
not set.
What am I doing wrong, or what must I do in order to set the values of
the pictureboxes?
Thanks in advance,
-Shaun