1,105,594 Community Members

Cannot execute lua code in textbox

Member Avatar
LuaMan
Newbie Poster
6 posts since Nov 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

*sigh* I'm back again. Same program. Different problem.

private void executeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string aaa = String.Format(richTextBoxEditor.ToString()); /*<-- Guessing that this is redundant */
            lua.DoString(aaa); //<-- problem code
        }

When I attempt to execute the Lua code in the textbox, it crashes the program. Wat do?

Member Avatar
LuaMan
Newbie Poster
6 posts since Nov 2010
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Fix'd. Used a streamwriter to create a temporary text file holding the data, and then executing that data from the file. Sorry for wasting your time.

Question Self-Answered as of 3 Years Ago
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: