Array Data Types

Hi All,

I have three dynamic arrays of type variant and I am assigning the value of one to another.I have redimed with the same size for all of them.

Dim authrsEmpNbr() As Variant,rdrsEmpNbr() As Variant

Dim empNbr() As Variant

Redim empNbr(c2wpview.EntryCount) As Variant

Redim authrsEmpNbr(c2wpview.EntryCount) As Variant

Redim rdrsEmpNbr(c2wpview.EntryCount) As Variant

rdrsEmpNbr = empNbr

empNbr is calculated as part of my code.

I am not allowed to Save this code.

Your help is appreciated.

Thanks,

Sreeni.

Subject: Array Data Types

Assign c2wpview.EntryCount to an integer, then use the integer in the Redim statements. The compiler can’t be sure that c2wpview.EntryCount will be an integer (c2wpview could be Nothing, right?).