Sign in to follow this  
Followers 0
michcio

Seting Text into a textbox

6 posts in this topic

hi!

How do I make new line while setting text with ControlSetText. I mean how do I set this text into a textBox:

hi
there

new line between hi and there. How do I do?

cheers

michcio

Share this post


Link to post
Share on other sites



"hi" & @crlf & "there"

thanks works perfectly! (was tring something like "hi \n there" :))

thanks!!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

btw I have a loong line in my code right now:

ControlSetText("Edit VM Commands","","ThunderRT6TextBox4","SetSTN subpicture=5:OFF" & @crlf & "Mov GPRM4, 1" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=1:ON" & @crlf & "Mov GPRM4, 2" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=2:ON" & @crlf & "Mov GPRM4, 3" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=3:ON" & @crlf & "Mov GPRM4, 4" & @crlf & "if ( GPRM4 == GPRM5 ) SetSTN subpicture=4")

is there a way to jump down a line in this command as well so this line isn't just one but more (but still same function)?

thankfull for answers :)

michcio

Edited by michcio

Share this post


Link to post
Share on other sites

Well, not triple posting should help. And what you are asking for is relatively easy:

ControlSetText("Edit VM Commands","","ThunderRT6TextBox4","SetSTN subpicture=5:OFF" & @crlf  _ 
& "Mov GPRM4, 1" & @crlf  _ 
& "if ( GPRM4 == GPRM5 ) SetSTN subpicture=1:ON" & @crlf  _ 
& "Mov GPRM4, 2" & @crlf  _ 
& "if ( GPRM4 == GPRM5 ) SetSTN subpicture=2:ON" & @crlf  _ 
& "Mov GPRM4, 3" & @crlf  _ 
& "if ( GPRM4 == GPRM5 ) SetSTN subpicture=3:ON" & @crlf  _ 
& "Mov GPRM4, 4" & @crlf  _ 
& "if ( GPRM4 == GPRM5 ) SetSTN subpicture=4")

[right]~What can I say, I'm a Simplistic person[/right]

Share this post


Link to post
Share on other sites

ah I use _ thanks!.

sry I edited my post wrong before but have erased it now :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0