Page 1 of 1

Strange Textbox error

Posted: Thu Aug 30, 2012 1:45 am
by muttley1968
Hi I need to enter
Code: Select all
"rs.setOutput("left", True)

as a textboxes text but if you do
Code: Select all
textbox1.text = "rs.setOutput("left", True)"
it wont allow it because of the fact that vb uses similar code it is for a programing laungague called lua I am building a sorta visual studio for it
Can anyone help me please

Re: Strange Textbox error

Posted: Thu Aug 30, 2012 8:56 pm
by mandai
You can use the quotemark characters in the textbox with this:
Code: Select all
TextBox1.Text = """rs.setOutput(""left"", True)"

Re: Strange Textbox error

Posted: Thu Aug 30, 2012 9:50 pm
by muttley1968
Thanks soooo mutch hahaha

Re: Strange Textbox error

Posted: Fri Aug 31, 2012 2:53 am
by muttley1968
okay that works only problem is that it removes some of the " mark :( any way to fix that

Re: Strange Textbox error

Posted: Fri Aug 31, 2012 10:25 pm
by mandai
The general rule is to add 2 quotemark symbols and it will appear as 1 in the text.

Re: Strange Textbox error

Posted: Sat Sep 01, 2012 12:17 am
by Filip
"" = " in strings

Re: Strange Textbox error

Posted: Sat Sep 01, 2012 2:08 am
by muttley1968
Figured it out thanks if I go LUA_Source.text= ("rs.setOutput("left", true)") then that works fine for me but thanks guys :P