Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Script error:

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,3289
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Script error:
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 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
 
 
Post #: 1
 
 Re: Script error: - 6/9/2005 5:23:55 AM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
Dear jorell,
I usaully get the same problem, but the wierd solution is to change the function into sub, and don't ask me why, cause this is microsoft...

(in reply to jorell)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Script error: Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts