Just got a quick question
I know how to assign arrays using the DIM command, but I want to give the array a set of constant figures that will never change
Under Delphi I would use the following when declaring the array at startup
var
myarray :array[0..8] of integer = (value1, value2, value3, etc, etc)
how can I do this under VB6, I have looked at the MSDN help but it only shows on how to create the DIM array, and nothing about assigning a particular list.
I have set the line as
Dim myarray(8) as integer
but if I add '= (value1, value2, value3, etc, etc) it reports an error
does this mean I have to set each item individually on each line as follows
myarray(0)=value1
myarray(1)=value2
myarray(2)=value3
or is there an easier solution
thanks