Actually i would like to declare this array as public because i will need this array in my class later, will first assign this array some value from my main form, then use the value in my class to do some processing. At first, i declared it as Public GraphicArr(1 to 2, 0 to 49) as String, then an error message prompted out:
Compile error:
Constans, Fixed-Length Strings, Arrays, User-Defined types and Declare statements not allowed as Public members of object modules.
do i miss out something when declaring my array? and can this public array be used in my class?
by the way, i had tried to do this in my form:
Dim GraphicArrayCls As Class1
Dim GraphicArr() As String
Set GraphicArrayCls = New Class1
ReDim GraphicArr(1 To 2, 1 To 20)
GraphicArr(1, 20) = GraphicArrayCls.GArray(1, 20)
For cnt = 1 to 20
GraphicArr(1, cnt) = stringvalue
next
......
this code can be compile but it will stop when it reach
GraphicArr(1, 20) = GraphicArrayCls.GArray(1, 20)
please help...
|