Hello, I'm new in
VB...
I have
VB code but there is an error and I do not know how to fix it.
Here is the code:
str = request.Form("txtSearch");
length = request.Form("txtSearch.value.length");
str_fix = "";
first = 1;
final = "";
word = 0;
for i=0 to length do
if i = length or str[i] = ' ' then
if str[i] <> "" then
path="form/document[(.,'<%= request.Form(" & str_fix & ")%>')]//*";
if first = 0 then: final += ' ';
first = 0;
final += str_fix;
str_fix = "";
word ++;
end if
while str[i+1] = ' ' and i+1 < length do
i++;
wend
else
str_fix += str[i];
next
if word > 1 then: path="form/document[(.,'<%= request.Form(" & final & ")%>')]//*";