thunderain
Programmer
Hi
I have a fuzzy code dll for a fuzzy search. The dll is in vb, but my program is in asp/vbscript.
When i use this line to feed the dll, with hardcoded info, it works perfect:
s=objRS6.avfuzzyequiv("EntryLP","WNF180",4,"%"
This code gives me exactly the results I am looking for.
When i try to replace "EntryLP" and "WNF180" with variables for the fieldname and input all i get is errors.
I tried everything but here are a couple of examples:
s=objRS6.avfuzzyequiv( fieldname , value ,4,"%"
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'avfuzzyequiv'
s=objRS6.avfuzzyequiv & "(""" & fieldname & """,""" & value & """,4,""%""
"
Error Type:
Microsoft VBScript runtime (0x800A01C1)
Argument not optional: 'avfuzzyequiv'
Full code of working version with hardcoding:
dim objRS6
set objRS6=Server.Createobject("FuzzyQuery.AvFuzzyQuery"
s=objRS6.avfuzzyequiv("EntryLP","WNF180",4,"%"
Set objRS1 = objCon.Execute("SELECT SelectClause, viewID FROM tblSubCategory WHERE SubCategoryID=" & subcat )
strSQL = objRS1("SelectClause"
& " AND " & s
If anyone can help me as to why this line will not take a varible, when hardcoded values work fine, it would be appreciated.
Thank you
thunderain
I have a fuzzy code dll for a fuzzy search. The dll is in vb, but my program is in asp/vbscript.
When i use this line to feed the dll, with hardcoded info, it works perfect:
s=objRS6.avfuzzyequiv("EntryLP","WNF180",4,"%"
This code gives me exactly the results I am looking for.
When i try to replace "EntryLP" and "WNF180" with variables for the fieldname and input all i get is errors.
I tried everything but here are a couple of examples:
s=objRS6.avfuzzyequiv( fieldname , value ,4,"%"
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'avfuzzyequiv'
s=objRS6.avfuzzyequiv & "(""" & fieldname & """,""" & value & """,4,""%""
Error Type:
Microsoft VBScript runtime (0x800A01C1)
Argument not optional: 'avfuzzyequiv'
Full code of working version with hardcoding:
dim objRS6
set objRS6=Server.Createobject("FuzzyQuery.AvFuzzyQuery"
s=objRS6.avfuzzyequiv("EntryLP","WNF180",4,"%"
Set objRS1 = objCon.Execute("SELECT SelectClause, viewID FROM tblSubCategory WHERE SubCategoryID=" & subcat )
strSQL = objRS1("SelectClause"
If anyone can help me as to why this line will not take a varible, when hardcoded values work fine, it would be appreciated.
Thank you
thunderain