I have a vb or c# question (I'm doing it in vb but either way is fine) so I am going through this big case statement that is like this........
Select Case item("itemLabelType")
Case "Shelf1"
oItemLabel.Shelf1 = item("value")
Case "Exp1"
oItemLabel.Exp1 = item("Exp1")
Case "CureDt1"
oItemLabel.CureDt1 = item("CureDt1")
End Select
is there a way I can just do it (like in javascript) where I would say oItemLabel[foo] = bar