Print Page | Close Window

Error

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=16926
Printed Date: 29 March 2026 at 5:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Error
Posted By: pilot99
Subject: Error
Date Posted: 16 October 2005 at 5:21pm
i am currently making an online editable media player but i ran into a problem i keep getting this erorr.
 

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/testing/mediaplayer/Mediaplayer.asp, line 32

var streams = new Array();
-----------------------^
 
i get that from this code what should id o to fix it?
 
var streams = new Array();
in bold red is the error line


-------------
http://www.globaltornado.com">



Replies:
Posted By: dfrancis
Date Posted: 16 October 2005 at 5:49pm
YOEW... that was way more complicated than I think it needed to be.
 
(You post was hard to read)
 
var streams = new Array();
It seems like JavaScript sytax instead of VB... ??
 
 


Posted By: pilot99
Date Posted: 16 October 2005 at 7:23pm
ok i encased it in <script language="javascript"></script> and it now shows and the first song starts to play. but now my buttons dont work and my dropdown box doesnt show my songs selections.Cry

-------------
http://www.globaltornado.com">


Posted By: dfrancis
Date Posted: 17 October 2005 at 3:10pm
Just rewrite the array declaration for VB instead of adding the js tags.
 
Dim streams()
 
streams = Array(recordset)
 
 
 
 


Posted By: pilot99
Date Posted: 17 October 2005 at 6:31pm
now i get this error
 

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/testing/mediaplayer/Mediaplayer.asp, line 38

streams[(rsGuestbook("ID_no"))] = new makeStream"(rsGuestbook("URL")", "(rsGuestbook("Info"))");
------------------------------------------------^


-------------
http://www.globaltornado.com">


Posted By: ub3rl337ch3ch
Date Posted: 31 October 2005 at 6:14pm
You're  getting a problem with the delimeters. i know jack about streams, but check your syntax.... the " is what's killing it...


Posted By: Gullanian
Date Posted: 31 October 2005 at 7:02pm
Shouldn't
streams[(rsGuestbook("ID_no"))]

Be

streams[(rsGuestbook("ID_no")]


Posted By: ub3rl337ch3ch
Date Posted: 01 November 2005 at 5:10pm
i think that 2nd bracket closes the one opened just before the 'r'...


Posted By: Gullanian
Date Posted: 02 November 2005 at 11:20am
Oops didn't see that one



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net