Hi there...
Is there a way of saving user input as code? A very trivial example just for demonstration follows :
If I initially wrote a program that when executed and the user clicks on a button, a text box prints out the famous message "Hello there". Say the user wants to change this message to "Hello Nerd!" and I included another text box for the user's input. So, is it possible to write code such that when the user enters "Hello Nerd!" in the input text box and clicks enter, the program would take the user's input as code and store it between the actual coding lines? i.e when the user exits the program and reloads it again another times and clicks on the same old button, the message "Hello Nerd!" is printed instead!
Thanks a lot!!
Is there a way of saving user input as code? A very trivial example just for demonstration follows :
If I initially wrote a program that when executed and the user clicks on a button, a text box prints out the famous message "Hello there". Say the user wants to change this message to "Hello Nerd!" and I included another text box for the user's input. So, is it possible to write code such that when the user enters "Hello Nerd!" in the input text box and clicks enter, the program would take the user's input as code and store it between the actual coding lines? i.e when the user exits the program and reloads it again another times and clicks on the same old button, the message "Hello Nerd!" is printed instead!
Thanks a lot!!