I have created a User Defined Type called Satus, I then created two arrays WStatus and BStatus. I would like to refer to one of the two arrays with an object CStatus. Is this possible with Visual Basic 6?
Dim Wstatus(17) As Status
Dim Bstatus(17) As Status
Dim CStatus As Object
Private Sub Form_Load()
Set CStatus = Bstatus ' this is where I get the error "object required"
I have also tried Set CStatus = Bstatus(), and when I tried CStatus = Bstatus that gave me "Compile Error: Only User-defined tupes defined in public object modules can be coerced to or from a variant or passed to late-bound functions"
Any help would be appriciated.