HOW TO: Optimally concatenate in a method

Many times if you’r moving a large string into a dataprovider you’ll want to spread it over multiple lines to increase readibility of your methods:

globals.myHtmlField = "<html><head>header stuff here</head>"
globals.myHtmlField += "<body> body here </body>"
globals.myHtmlField += "etc etc"

Both if you’re doing this to a global that is used on a screen or to a column of a table it will be much more cpu intensive then first constructing the entire contents in a variable and then putting it into the dataprovider:

var myHtml  = "<html><head>header stuff here</head>"
myHtml += "<body> body here </body>"
myHtml += "etc etc"
globals.myHtml = myHtml