CallByName lets you call a Function or manipulate a Property on an object, such as a TextBox or other class:
CallByName(TextBox1, "Text", CallType.Set, "New Text")
CallByName(TextBox1, "Hide", CallType.Method)
Dim col As New Collection()
' Store the string "Item One" in a collection by
' calling the Add method.
CallByName(col, "Add", CallType.Method, "Item One")
' Retrieve the first entry from the collection using the
' Item property and display it using MsgBox().
MsgBox(CallByName(col, "Item", CallType.Get, 1))
The down side to using the CallByName function is that it is very slow. There is also no type checking of arguments, so handling errors properly becomes a bit of a pain. RageInTheMachine9532