For example:
I know it doesn't work like this, but is it possible to handover the name of a membervariable and use it like that?Code:Public Structure MyStructure Public Int1 As Integer Public Int2 As Integer Public Int3 As Integer Public Int4 As Integer End Structure ... .... Dim Test as New MyStructure ... 'Somewhere in Code DoCheck("Int1") DoCheck("Int2") DoCheck("Int3") DoCheck("Int4") .... .... Public Sub DoCheck(MemberVariableName as String) If Test.MemberVariableName=Whatever Then End If End Sub




Reply With Quote