Solved

Why use VB Script?

Posted on 2000-03-09
7
158 Views
Last Modified: 2010-05-02
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!
0
Comment
Question by:dvd99
7 Comments
 
LVL 1

Author Comment

by:dvd99
ID: 2603161
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?
0
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2603602
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.
0
 
LVL 18

Expert Comment

by:deighton
ID: 2603747
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.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 13

Expert Comment

by:crazyman
ID: 2604179
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.
0
 

Accepted Solution

by:
jngillot earned 10 total points
ID: 2636178
My opinion is that with VB Script you can for example create you own ActiveX DLL or Control and use it in a VB Script

This is a way to extend your browser or the content of your application.

Anyway, the problem with using ActiveX and especially for the Web, is that if you control or dll is huge, the people that are going to connect to your web may stop downloading the control as this may take to much time.

I had the problem in the past and i've decided to write in Java instead of using a control.

Also in VBScript you may be able to open an Access Database for exemple and much more stuff.

Microsoft has an article on all supported function in VB script.
0
 
LVL 12

Expert Comment

by:pjknibbs
ID: 2636509
jngillot: You can create ActiveX controls in the full-blown Visual BASIC language, but not VBScript.
0
 

Expert Comment

by:jngillot
ID: 2636809
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now