Login | |
|
 |
Script error: - 6/8/2005 4:19:41 AM
|
|
 |
|
| |
jorell
Posts: 1
Score: 0
Joined: 6/8/2005
From:
Status: offline
|
I have an ASP file I created and as an include to all my asp pages. It contains Javascript code and VbScript code. All the Javascrip seems to work fine, however it seems when it comes time to use the VBScript functions I get this message: Error Type: Microsoft VBScript compilation (0x800A03EA) Syntax error /FindlaysCart/UCII_Cart.asp, line 3 Function GetCookieExp(expDays) <SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT NAME="UC_CART"> Function GetCookieExp(expDays) vDate = DateAdd("d", CInt(expDays), Now()) GetCookieExp = CStr(vDate) End Function Function DoNumber(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits) DoNumber = FormatNumber(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits) End Function Function DoCurrency(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits) DoCurrency = FormatCurrency(str, nDigitsAfterDecimal, nLeadingDigit, nUseParensForNeg, nGroupDigits) End Function </script> And if I remove the getCookieExp function then I get the same error for the DoNumber Function. Which leads me to believe that its not the specific functions but something else. Any suggestions or comments would be greatly appreciated! Thank you
|
|
| |
|
|
|
|
|