Long Strings Broken Into Multiple Lines?

Started by SilverSpook, Wed 29/04/2015 09:15:49

Previous topic - Next topic

SilverSpook

Is there a way to have a very long string broken up into multiple lines, in the code?  So that you can read it without having to scroll horizontally in the editor?

I found one thread on this topic but there wasn't a yes or no on this question, as I could gather.

Thanks

Slasher

#1
Here is an example of cutting text strings up:

Code: ags

DisplayAt(24, 100, 500,  "%s %s %s %s %s", //  %s per line... [ = a line break
" text here",
" text here",
" text here",
" text here",
" text here"); // final line

Crimson Wizard

Frankly, I did not find this in AGS script.

I usually do:
Code: ags

String s =   "asdasdasdasdasdadsd");
s = s.Append("cv dv df gdf df gdf");
s = s.Append("sdasd sdfsfs f df d");

SilverSpook

Ok thanks guys.  I settled on the String append method.

SMF spam blocked by CleanTalk