lolkid Posted May 11, 2009 Posted May 11, 2009 I would like to split oversized lines... Msgbox(0, "An example", "Hello," & @CRLF & "I would like to split this line in half or more parts," & @CRLF & "because it is so long and" & @CRLF & "because it makes my script look so ugly :X") like so... Msgbox(0, "An example", "Hello," & @CRLF & "I would like to split this line in half or more parts," & @CRLF & "because it is so long and" & @CRLF & "because it makes my script look so ugly :X") What must I do?
Albert88 Posted May 11, 2009 Posted May 11, 2009 I would like to split oversized lines... Msgbox(0, "An example", "Hello," & @CRLF & "I would like to split this line in half or more parts," & @CRLF & "because it is so long and" & @CRLF & "because it makes my script look so ugly :X") like so... Msgbox(0, "An example", "Hello," & @CRLF & "I would like to split this line in half or more parts," & @CRLF & "because it is so long and" & @CRLF & "because it makes my script look so ugly :X") What must I do? There is a function called StringSplit($string,$delimit) An example: $days = StringSplit("Sun,Mon,Tue,Wed,Thu,Fri,Sat", ",") MsgBox(0,"",$days[1]) <--- $days[1] = Sun, $days[2] = Mon For your problem: Msgbox(0, "An example", $array[1] & @CRLF & $array[2] & @CRLF & $array[3] & @CRLF & $array[4])
lolkid Posted May 11, 2009 Author Posted May 11, 2009 I meant something like \ in Bash and not a string to array conversion...
RomanK Posted May 11, 2009 Posted May 11, 2009 Simply use these symbols: _ (with a space before them) Msgbox(0, "An example", "Hello," & @CRLF & _ "I would like to split this line in half or more parts," & @CRLF & _ "because it is so long and" & @CRLF & _ "because it makes my script look so ugly :X") Another example: GUICreate("blabla", _ 50, 50 _ , -1, -1, _ ) this example is of course silly, but it should work. ^^ [font="Courier New"]http://RomanK.hondadesigns.com[/font]
lolkid Posted May 11, 2009 Author Posted May 11, 2009 Simply use these symbols: _ (with a space before them) Msgbox(0, "An example", "Hello," & @CRLF & _ "I would like to split this line in half or more parts," & @CRLF & _ "because it is so long and" & @CRLF & _ "because it makes my script look so ugly :X") Another example: GUICreate("blabla", _ 50, 50 _ , -1, -1, _ ) this example is of course silly, but it should work. ^^Thanks a lot, that's what I was looking for!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now