views:

160

answers:

2

This should be a TOTAL no-brainer, but I haven't really written any classic ASP code in like 10 years and just cannot remember how to do this, and can't find it on google.

All I'm looking to do is to set a Classic ASP page to use Option Compare Text, but I cannot remember the syntax for this. I've tried all of the following, as the first lines in my file...

<%Option Compare Text%>
<%Option Compare="Text"%>
<%Option=CompareText%>
<%Compare="Text"%>
<%Option="Compare Text"%>
<%@Option Compare Text%>
<%@Option Compare="Text"%>

I'm pretty sure it is something with the @ symbol like the last two, but just can't remember. Thanks in advance!

A: 

I am sorry, I don't have IIS installed on my machine.
Could you not use StrComp function that has parameter for the method of comparison?

shahkalpesh
Well, I was trying to use the Replace function to do some keyword highlighting in a set of search results. I wound up instead using the RegExp object and using its Replace method. I'm still curious though if anyone can answer how to do this...
eidylon
+2  A: 

There is no Option Compare in VBScript, sorry.

Source

Eduardo Molteni