Link to home
Start Free TrialLog in
Avatar of dvd99
dvd99

asked on

Why use VB Script?

Hello could someone please tell me if why (if it is), is VB Script better than Java Script?
VB Script only works with IE.
So what are the advantages?
Thanks!
Avatar of dvd99
dvd99

ASKER

Also can VB Script be used without the browser for a scripting language?
Like to log off and on under a new user name?
Thanks?
What things can it do?
If you know BASIC but don't know Java, VBScript is obviously easier to use. As far as functionality goes they're about the same, though.

Under Windows 98 and Windows 2000, which include the Windows Scripting Host, you can run VBScript *or* JScript outside the browser.
I'm starting using VBscript within ASP pages, seems ok.  I thought it ran on a server then pumps out HTML to the browser, so you can use Netscape.  

Like someone said, I don't know Java and there's too much else to learn, so we're using VB.
You can run Vbscript or java script in ASP pages either server side or client side,obviously some advantages are lost and gained depending on your choice but Ii usually use VbScript for server side and java Script for Client Side.
Ii guess it is more a case of personal choice than anything because i know a lot of people who use javaScript server side and they have no problems with it.
ASKER CERTIFIED SOLUTION
Avatar of jngillot
jngillot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
jngillot: You can create ActiveX controls in the full-blown Visual BASIC language, but not VBScript.
Yes of course.

But then you can use the method CreateObject to have an instance of it.

VB script does not support DDE calls, but support OLE/COM calls.

So if in a VB script you want to open (for example) an Excel Spread sheet, you need to call CreateObject to do so.

As in Java Script you cannot.

Also using VB script you know that this will work with IE and not with Netscape (or you can find an activeX plugin to have the support in Netscape).

As with Java Script you must know offen in your code which browser you are using because of some functions that cound not work with one of them.