Really basic question.
I have a single form and want to create an object (I think) and assign a value to it.
Dim Devs as Object
For i = 0 To 3
If (Devices And 2 ^ i) Then
Devs(i) = True ' breaks here
Else
Devs(i) = False 'or here (depends on the if obviously)
End If
Next i
With this I get an error: Object variable or With block variable not set
I thought I could just make an Array or Object and assign a value, but I guess I'm wrong.
What is the proper way to do this?