473,473 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error when calling a JScript function in a .vbs file

153 New Member
G'day...not sure if this is the proper place to post this question as it is vbscript, but I figured I'd give it a shot...I have searched the depths of the oceans for an answer to this problem but I am finally giving in to asking for help via the best community of programmers out there :P

In attempting to execute the following line of code:

Expand|Select|Wrap|Line Numbers
  1.  <script language=JScript>
  2.         function SortVBArray(arrInput) {
  3.             return arrVBArray.toArray().sort().join('\b');
  4.         }
  5. </script> 
I am getting the following error message:

Error: Expected Statement
Code: 800A0400

The error starts from the first character of the line

I am attempting to call this function in a .vbs file and I am placing it at the bottom of the file with all of the other functions

Do I need to add anything for this to be able to execute?

Here is the function from where I am calling the code:

Expand|Select|Wrap|Line Numbers
  1. Function SortArray(arrInput)
  2.    SortArray = Split(SortVBArray(arrInput), Chr(8))
  3. End Function
Please advise. Any help would be greatly appreciated. Thanks!
Mar 31 '08 #1
3 1180
Dököll
2,364 Recognized Expert Top Contributor
G'day...not sure if this is the proper place to post this question as it is vbscript, but I figured I'd give it a shot...I have searched the depths of the oceans for an answer to this problem but I am finally giving in to asking for help via the best community of programmers out there :P

In attempting to execute the following line of code:

Expand|Select|Wrap|Line Numbers
  1.  <script language=JScript>
  2.         function SortVBArray(arrInput) {
  3.             return arrVBArray.toArray().sort().join('\b');
  4.         }
  5. </script> 
I am getting the following error message:

Error: Expected Statement
Code: 800A0400

The error starts from the first character of the line

I am attempting to call this function in a .vbs file and I am placing it at the bottom of the file with all of the other functions

Do I need to add anything for this to be able to execute?

Here is the function from where I am calling the code:

Expand|Select|Wrap|Line Numbers
  1. Function SortArray(arrInput)
  2.    SortArray = Split(SortVBArray(arrInput), Chr(8))
  3. End Function
Please advise. Any help would be greatly appreciated. Thanks!
Get a load of these ideas:

http://www.computerperformance.co.uk...e_800A0400.htm
Apr 1 '08 #2
Kosmos
153 New Member
Thank you for the reply. I do think it could be the missing characters issue but unfortunately this is my first time even using JScript never mind calling it in a .vbs file. I've tried to find something that would explain the proper steps to do this from a .vbs file but so far I have not been able to find anything. Thx
Apr 1 '08 #3
Kosmos
153 New Member
I think the issue may be related to the tag :
Expand|Select|Wrap|Line Numbers
  1. <script language=JScript>
I borrowed the JScript from a website and I think this code is setup for web scripting. I simply need to run a .vbs file locally. Please advise. Thank you in advance for any help.
Apr 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
6
by: Dan Roberts | last post by:
I am running some off-the-shelf software that is written in ASP, which uses JScript to generate dynamic content within HTML forms. There are several ASP pages which are partially rendering to IE,...
5
by: benc | last post by:
Hi Can some good soul help on this. I need to call jscript functions from C#. I have hosted a web control and displayed an html page successfully, but just can't find a way to call jscript...
1
by: Adrian | last post by:
I appear to be losing ViewState information when calling the __doPostBack function. I am attempting to use the showModalDialog to load a new web page which confirms that a user wishes to save a...
6
by: Ajit Goel | last post by:
Hi; We have a Javascript function which I have been tasked to move to a CSharp class. This javascript function uses Regular expression extensively. This function has a string input parameter and...
1
by: NvrBst | last post by:
I'm having a problem with a "Member not found. (Exception from HRESULT: 0x80020003 DISP_E_MEMBERNOTFOUND))" error. The origional ASP is JScript, and the ASP.NET is JScript.NET. I'm creating an...
2
by: NvrBst | last post by:
Hello. I posted this problem in the microsoft.public.dotnet.languages.csharp origionally but moving it here since I think it probably belongs here now. I have a blank ASP.NET/C# page with a...
1
by: pratimapaudel | last post by:
function Showdiv() { var SelectStates = document.getElementById('Select1').value; if(SelectStates ="3") { document.getElementById("div2").style.display = "block"; } else ...
3
by: suganya | last post by:
Hi Some professionals already has developed the project using menu. In my company, they have given me task to clear the error in that. It is a script file named as "menubarAPI4.js" which is kept...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.