Connecting Tech Pros Worldwide Forums | Help | Site Map

concatenation in vb.net

AlexB
Guest
 
Posts: n/a
#1: Jul 21 '05
Your problem is on this line:

" <EMPNO>"+ i.ToString()" & _

Try this instead:

" <EMPNO>" & i.ToString() & _
[color=blue]
>-----Original Message-----
>Hi,
>
>I am trying to concatenate the following string using & _
>I am getting syntax error. can anyone please suggest what
>is the substitiute for this.
>
> 'Create a sample XML document
> dim str as string = "<?xml version=\"1.0\"?>\n" & _
> "<ROWSET>\n" & _
> " <ROW>\n" & _
> " <EMPNO>"+ i.ToString()" & _
> " <ENAME>Angela</ENAME>\n" & _
> " <SAL>1000</SAL>\n" & _
> " <DEPTNO>10</DEPTNO>\n" & _
> " </ROW>\n" & _
> "</ROWSET>\n"
>
>
>thanks in advance
>.
>[/color]

Closed Thread


Similar .NET Framework bytes