So I am loading an XML file to get all the settings for a program. Not a problem, I've got what I need regarding that. However, once the data is loaded, my goal is to load the data into text boxes (to show the current settings) so that the user can edit the settings as necessary... and then they'd be able to write the settings back to the XML file.
For example... I have:
Textbox: txtWidth
var1 = "txtWidth"
var2 = "800"
I want to make it so in effect it's this: var1.text = var2
I have close to 100 paramaters that need to be loaded so obviously it's being done through a loop. I just can't figure out how to do this -- if it's even possible.
Question
nemo
So I am loading an XML file to get all the settings for a program. Not a problem, I've got what I need regarding that. However, once the data is loaded, my goal is to load the data into text boxes (to show the current settings) so that the user can edit the settings as necessary... and then they'd be able to write the settings back to the XML file.
For example... I have:
Textbox: txtWidth
var1 = "txtWidth"
var2 = "800"
I want to make it so in effect it's this: var1.text = var2
I have close to 100 paramaters that need to be loaded so obviously it's being done through a loop. I just can't figure out how to do this -- if it's even possible.
Does anybody have any ideas?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts