Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/10/2008, 13:21
esteller
 
Fecha de Ingreso: mayo-2007
Mensajes: 33
Antigüedad: 18 años
Puntos: 0
Respuesta: Concatenar con VB Script

Buenas, he hecho lo que me has dicho tu:
Código:
tf.WriteLine("<![CDATA[ & do while not Dades.Eof & <strong><font face='arial' size=2> & if Dades('MES')=1 then & ENERO & txtMes='Enero' end if if Dades('MES')=2 then & FEBRERO & txtMes='Febrero' end if if Dades('MES')=3 then & MARZO & txtMes='Marzo' end if if Dades('MES')=4 then & ABRIL & txtMes='Abril' end if if Dades('MES')=5 then & MAYO & txtMes='Mayo' end if if Dades('MES')=6 then & JUNIO & txtMes='Junio' end if if Dades('MES')=7 then & JULIO & txtMes='Julio' end if if Dades('MES')=8 then & AGOSTO & txtMes='Agosto' end if if Dades('MES')=9 then & SEPTIEMBRE & txtMes='Septiembre' end if if Dades('MES')=10 then & OCTUBRE & txtMes='Octubre' end if if Dades('MES')=11 then & NOVIEMBRE & txtMes='Noviembre' end if if Dades('MES')=12 then & DICIEMBRE & txtMes='Diciembre' end if &   & CStr(Dades('ANI')) & </font></strong><br><TABLE WIDTH='100%'><TR><TD WIDTH='33%'><STRONG><font face='arial' size=2>Dia</font></STRONG></TD><TD WIDTH='33%'><STRONG><font face='arial' size=2>Planta Noble</font></STRONG></TD><TD WIDTH='34%'><STRONG><font face='arial' size=2>Golfes</font></STRONG></TD></TR> & do while not Dades2.Eof & <TR><TD><font face='arial' size=2> & <%=CStr(Dades2('DIA')) &   & txtMes & </font></TD><TD><font face='arial' size=2> de & <%=Dades2('INICINOBLE') & h a & <%=Dades2('FINOBLE') & h</font></TD><TD><font face='arial' size=2> de & <%=Dades2('INICIGOLFES') & h a & <%=Dades2('FIGOLFES') & h</font></TD></TR> & Dades2.MoveNext loop & </TABLE><BR> & Dades.MoveNext loop & ]]>")
.
Nota: El punto del final dentro del CODE es para que se vea toda la linea bien.

El resultado no es lo que me esperaba, puedes verlo en esta direccion
http://www.casabatllo.es/proves/xml.xml
Fijate tambien que en el resultado no incluye ni "<![CDATA[" ni "]]", que es el principio i el final.

A ver si sabes porque passa esto, yo quiero que ahy muestre los resultados, no el texto en si.

gracias