Jump to content

Seting Text into a textbox


michcio
 Share

Recommended Posts

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
Link to comment
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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...