Sat for some time trying to work out what to title this thread. Thats the best I could do :/.

Anyway, what I'm trying to do is take an XML file and convert commands into controls and procedures etc. The best way is to explain this with an example:
Lets say I have the following
<txtInputField>
<Text>
This is new text to set
</Text>
</txtInputField>

What I want to do is somehow convert this into txtInputField.Text = "This is new text to set"

Now, my problem is obvious - how do I convert a string name into a control without 10 000 if statements. I know if I have the control that I can use the CallByName procedure. Is there something similar to get a handle of an object?

Any help appreciated