|
Asp Articles
:: General :: Using Inverted Commas in VBScript
Written by Tim Wong
Have you ever tried to insert / use inverted commas that are viewable in
the HTML source code using VBScript? You might have encountered some errors
such as "Unterminated String Constant".
The general rule of inserting / using inverted commas is to insert another
inverted comma in front of the inverted comma that you want to use. For example,
if you want to write an inverted comma out:
The output will be a single inverted comma output.
Let's say you want to search a string to see whether it contains inverted
commas:
<% If InStr(myString, """") = 1 then
blnFound = true
End If
%>
|
I hope this has been some help to you, if not some head knowledge for the
newer ASP programmers.
|