N
NanQuan
I'm hoping someone can help me solve this error since I am at a total
loss here. Usually I don't bother posting on any forums or groups on
the internet and prefer to solve stuff myself but this is a total
mistery.
I have a function inside an ASP page as a result of which I get the
following error message:
Microsoft VBScript compilation error '800a03ea'
Syntax error
/admin/dev/Order/process.asp, line 160
Function heenEncode(string)
^
I developed this function in a seperate ASP page and it worked with no
problems what so ever. However when I finished developing it and
proceeded to implement it in my another ASP page I suddenly got this
weird error suggesting that there's something wrong with my syntax.
Here is the function:
<%
Function heenEncode(string)
x = Len(string)
y = Len(string)
a = 1
Set d = Server.CreateObject("Scripting.Dictionary")
Do While x>0
T = heen(Mid(string,a,1))
d.Add x, T
a = a + 1
x = x - 1
Loop
Do While y>0
TT = TT + d.Item(y)
y = y - 1
Loop
Set d = Nothing
heenEncode = TT
End Function
Function heen(letter)
dim ArHeb,ArEng
ArHeb =Array("à","á","â","ã","ä","å","æ","ç","è","é","ë","ì","î","ð","ñ","ò","ô","ö","÷","ø","ù","ú","õ","ê","ó","ï","í")
ArEng =Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","@")
x = 26
Do While (x > -1)
If letter = ArHeb(x) Then
letterT = ArEng(x)
End If
x = x - 1
Loop
If letterT = "" Then
heen = letter
Else
heen = letterT
End If
End Function
%>
The 2nd function is a part of the first function, but it's not defined
within the first function so please don't start suggesting that as a
possible cause for the problem, plus it worked fine on a seperate ASP
page just as it is.
Any help would be greatly appreciated, since I read through some of
the posts here regarding this error, but I couldn't find any solution
that will work for my specific situation.
Thanks!!
loss here. Usually I don't bother posting on any forums or groups on
the internet and prefer to solve stuff myself but this is a total
mistery.
I have a function inside an ASP page as a result of which I get the
following error message:
Microsoft VBScript compilation error '800a03ea'
Syntax error
/admin/dev/Order/process.asp, line 160
Function heenEncode(string)
^
I developed this function in a seperate ASP page and it worked with no
problems what so ever. However when I finished developing it and
proceeded to implement it in my another ASP page I suddenly got this
weird error suggesting that there's something wrong with my syntax.
Here is the function:
<%
Function heenEncode(string)
x = Len(string)
y = Len(string)
a = 1
Set d = Server.CreateObject("Scripting.Dictionary")
Do While x>0
T = heen(Mid(string,a,1))
d.Add x, T
a = a + 1
x = x - 1
Loop
Do While y>0
TT = TT + d.Item(y)
y = y - 1
Loop
Set d = Nothing
heenEncode = TT
End Function
Function heen(letter)
dim ArHeb,ArEng
ArHeb =Array("à","á","â","ã","ä","å","æ","ç","è","é","ë","ì","î","ð","ñ","ò","ô","ö","÷","ø","ù","ú","õ","ê","ó","ï","í")
ArEng =Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","@")
x = 26
Do While (x > -1)
If letter = ArHeb(x) Then
letterT = ArEng(x)
End If
x = x - 1
Loop
If letterT = "" Then
heen = letter
Else
heen = letterT
End If
End Function
%>
The 2nd function is a part of the first function, but it's not defined
within the first function so please don't start suggesting that as a
possible cause for the problem, plus it worked fine on a seperate ASP
page just as it is.
Any help would be greatly appreciated, since I read through some of
the posts here regarding this error, but I couldn't find any solution
that will work for my specific situation.
Thanks!!