W
Will
in javascript or the like, when you wish to evaluate a
string you use eval() for instance if you had five text
boxes named textbox1, textbox2, etc. you would write
something like:
for (x=1;x<5;x++) {
eval(textbox + x).text = "item: " + x;
}
how can you do a similar thing in C#? I cannot believe
that there is no eval method. That would just be
rediculous. Thanks in advance for help!
Will
string you use eval() for instance if you had five text
boxes named textbox1, textbox2, etc. you would write
something like:
for (x=1;x<5;x++) {
eval(textbox + x).text = "item: " + x;
}
how can you do a similar thing in C#? I cannot believe
that there is no eval method. That would just be
rediculous. Thanks in advance for help!
Will