Forum Moderators: open

Message Too Old, No Replies

Stringbuilder?

         

Karma

2:56 pm on Jan 26, 2009 (gmt 0)

10+ Year Member



Hi all,

I come from a C#/PHP background and I'm pretty new to JScript.

I'm working on some code that is building up a rather large XML string.

Are there any inbuilt Jscript functions similar to C#'s stringbuilder?

Little_G

4:11 pm on Jan 26, 2009 (gmt 0)

10+ Year Member



Hi,

No there isn't, you can concatenate strings by using the + operator, you can also use +=.

example:

var test1 = "string1" + "string2";
test1 += "string3";

Andrew