I have an asp file with a lot of constants (constants.inc
).
Into asp page:
<!-- #Include file="../../constants.INC" -->
....
<script language="vbscript" type="text/vbscript" src="../scripts/scrmot.vbs"></script>
....
Into scrmot.vbs I want to do next:
Function validChars
Dim carval
carval = <%=scarVal%> 'scarVal is a constant defined in constants.INC
....
End Function
but that crashes! The entire .vbs file doesn't charge because that instruction get error.
How can assign the constant asp scarVal
to a vbscript variable carval
?