Encontré la respuesta al uso doble y triple comillas insatisfactorias Usé un DO ... LOOP anidado para escribir un segmento ASP de código. Hay comillas repetidas dentro de la cadena. Cuando me encontré con el código:
thestring = "<asp:RectangleHotSpot Bottom=""" & bottom & """ HotSpotMode=""PostBack"" Left="""& left & """ PostBackValue=""" &xx & "." & yy & """ Right=""" & right & """ Top=""" & top & """/>"
la salida fue: < `asp: RectangleHotSpot Inferior =" 28
'Changing the code to the explicit chr() call worked:
thestring = "<asp:RectangleHotSpot Bottom=""" & bottom & chr(34) & " HotSpotMode=""PostBack"" Left="""& left & chr(34) & " PostBackValue=""" &xx & "." & yy & chr(34) & " Right=""" & right & chr(34) & " Top=""" & top & chr(34) &"/>"
La salida:
<asp:RectangleHotSpot Bottom="28" HotSpotMode="PostBack" Left="0" PostBackValue="0.0" Right="29" Top="0"/>
un "al final no se encuentra – sushant
No, el código parece estar bien. –
conseguido. Un montón de gracias – sushant