I have an object with several fields:
address.kondition, address.sprache, address.waehrung and so on.
How can I access the fields in a function dynamically? I tried the following code, but address.field gives an error:
Private Sub fkt1()
Dim address As New objAddress
fkt2("Kondition", "1", address)
fkt2("Sprache", "D", address)
End Sub
Private Sub fkt2(ByVal field As String, ByVal defaultvalue As String, ByVal address As objAddress)
If address.field = 0 Then
MsgBox("Not defined")
address.field = defaultvalue
Else
...
End If
End Sub