Anyone see the problem with this line????

  • Thread starter Thread starter dave
  • Start date Start date
I do C# myself, but... Does VB.Net even have vbCrLf anymore? Try one of
the following:

sScript.Append("myOpener.doReload(\'1\', \'" + ContID.ToString() +
"\');" + System.Environment.NewLine)

or

sScript.Append("myOpener.doReload(\'1\', \'" + ContID.ToString() + "\');\n")
 
I think your using two different types of concatenators. both + and
&...... it not the best

VB Solution

sScript.Append("myOpener.doReload('1','" & ContID & "');" & vbCrLf)
 
What kind of an error are you getting?

As for the comments from the other guys:
I agree that mixing the + and & characters is not the cleanest approach but
it should not break your code.
Also, vbCrLf is still supported.
 
sScript.Append(String.Concat("myOpener.doReload('1','", ContID, "');",
Environment.NewLine))
 
Back
Top