We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,605 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Cannot execute lua code in textbox

*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?

1
Contributor
1
Reply
13 Minutes
Discussion Span
2 Years Ago
Last Updated
2
Views
Question
Answered
LuaMan
Newbie Poster
6 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

LuaMan
Newbie Poster
6 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 2 Years Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0568 seconds using 2.64MB