G
Guest
sb = New StringBuilder
sb.Append(vbNewLine)
sb.Append("function init() {")
sb.Append(vbNewLine)
sb.Append("ModuleMenu = new TRMenu.TRMenu();")
sb.Append(vbNewLine)
sb.Append("ModuleMenu.Add('Modules',0,'ModuleMenuList');")
Or
sb = New StringBuilder
sb.Append(vbNewLine & "function init() {" & vbNewLine & "MMenu = new
Menu.Menu();" & vbNewLine & "ModuleMenu.Add('Modules',0,'ModuleMenuList');")
I've been told that the first method of joining a string is definately a
better way of programming. Is this correct? To me it seems like more work to
for the same result.
sb.Append(vbNewLine)
sb.Append("function init() {")
sb.Append(vbNewLine)
sb.Append("ModuleMenu = new TRMenu.TRMenu();")
sb.Append(vbNewLine)
sb.Append("ModuleMenu.Add('Modules',0,'ModuleMenuList');")
Or
sb = New StringBuilder
sb.Append(vbNewLine & "function init() {" & vbNewLine & "MMenu = new
Menu.Menu();" & vbNewLine & "ModuleMenu.Add('Modules',0,'ModuleMenuList');")
I've been told that the first method of joining a string is definately a
better way of programming. Is this correct? To me it seems like more work to
for the same result.