Hello All,
I am experiencing a problem when trying to pass value from ASP to client VBScript, but I can pass it to Javascript. Here is the code:
**Assume that the Variable = "123.txt"
<SCRIPT LANGUAGE="JavaScript">
function funA()
{
funB('<%=Variable%>');
}
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
Sub funB(Vairable)
MsgBox InStr(1, "456.txt, 123.txt", Variable, 1)
End Sub
The funB returns 0. Why? Should not it be 10 where 123.txt starts?
Thank you,
Beer
I am experiencing a problem when trying to pass value from ASP to client VBScript, but I can pass it to Javascript. Here is the code:
**Assume that the Variable = "123.txt"
<SCRIPT LANGUAGE="JavaScript">
function funA()
{
funB('<%=Variable%>');
}
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
Sub funB(Vairable)
MsgBox InStr(1, "456.txt, 123.txt", Variable, 1)
End Sub
The funB returns 0. Why? Should not it be 10 where 123.txt starts?
Thank you,
Beer