Anyone see the problem with this line????

A

Aaron Lewis

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")
 
S

Scott Reynolds

I think your using two different types of concatenators. both + and
&...... it not the best

VB Solution

sScript.Append("myOpener.doReload('1','" & ContID & "');" & vbCrLf)
 
S

Steve C. Orr [MVP, MCSD]

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.
 
N

Nick

sScript.Append(String.Concat("myOpener.doReload('1','", ContID, "');",
Environment.NewLine))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top