The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hi I have been trying to figure out this simple thing for 2 days now and I can't get it. I get a run time error when I call the function 'DelArray()' from inside vbscript with a document.write tag. I have tried DelArray with quotes, without quotes, without parentheses, nothing seems to work. Here is the offending code:

I can't think of anything else to do and so I am asking all the experts to give me a 10 second solution. It is probably something amazingly simple. I have looked everywhere here, deja.com, msdn, asptoday, asp101, ....

Yes I agree Jscript is better but I just don't know it and where I work no one else does either they all know VBscript and this is for our intranet and everyone has(must have) IE5. VBscript is easier to learn but also alot more code and I believe bloated. But in a big company (I am new here) you have to conform to standards and then maybe slowly change them. I am going to try and learn more Jscript but time is hard to come by and I spend enough time coding at work. To code more after work is sometimes fun sometimes NOT..if you get my drift. So it will probably be awhile before I get more Jscript and then convince my boss to allow me to use it.

Thanks Again for responding..this is a really cool site I like the attitude.

Karl,
I tried your fix but unfortunately it did not work. However, I found out that when you use document.write it doesn't allow you to see client side script functions. Which is very weird since document.write is called in client side script. To double check I viewed source and all I saw was my document.write statements and nothing else.
The ggod news is I finally found another guy who knew ASP and he told me to use the innerHTML feature, which I did, and now it works perfectly. Just wanted to keep you updated thanks for the help.

You can't use document.write on the server in an ASP script if that is what your trying to do. Client side objects only exist within Internet Explorer so the Scripting Engine on the server can't see them. Use Response.write on the server.