From: David H. <pro...@ma...> - 2009-03-11 23:14:07
|
I have a component that displays a question and an answer field which I would like to make dynamic and pull from the database based on the question number. The question to display is determined by questions.objectAtIndex(questionNumber) The answer should be stored in a variable such as exam.question1 where the string is formed by string = "exam.question"+questionNumber Can I get the component editor to evaluate the string as the variable to store the textfield's value? Something like this (pseudo-code since it definitely doesn't work ;-) <wo:textfield value = <"$ $string" /> Thanks for any ideas, David |