PDA

View Full Version : c# equivalent to eval function?


reslstancelsfutlle
04-20-2007, 01:56 PM
I have a text field:EntryFirstNameI can do this:EntryFirstName.Text="M";But how can I make my program do the same thing with this:string e="Entry";e+"FirstName".Text="M";I thank you for giving me the "ode to code" page. I mailed it to myself at work but I wanted to ask the question again a different way since I am not evaluating to any specific type and also my last question cut off some of the text.

dhvrm
04-20-2007, 02:46 PM
I previously answered this question for you. There is no Eval equivalent ion C#, but you can make one from a class that uses JScript.http://answers.yahoo.com/question/index?qid=20070418180144AAgUop0