Saturday, March 31, 2012

string variable containing one doublequote

hallo,

how do I declare a string variable containing one doublequote?

this sentence should be in the variable: <img src="http://pics.10026.com/?src=

I was trying something ilke

Dim Path as string = "<img src="http://pics.10026.com/?src= & """ but doesn' work

any idea? thanks

reply to myself: found out the solution

chr(34) instead of """


Dim Path as string = "<img src="http://pics.10026.com/?src= & """"

'/

Dim Path as string = "<img src="http://pics.10026.com/?src=""

'/

Dim Path as string = "<img src="http://pics.10026.com/?src= & Chr(34)

:)

0 comments:

Post a Comment