Solved

What is a VB Script?

Posted on 2003-11-28
7
462 Views
Last Modified: 2010-05-03
Hi!

I have been programming in Visual Basic for over a few years now and I have been hearing about VB Script over and over, but I never took time to look what it is.

So I have few questions:

1) What is a VB Script?
2) What is the difference between Visual Basic and VB Script?    
3) What are the advantages of using VB Script over Visual Basic and vice versa?
4) What is VB Script used for? Why can't we use Visual Basic for it?
5) Where is a good place to start if I choose to learn VB Script?

Thanx in advance!
0
Comment
Question by:dbrckovi
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
ADSaunders earned 50 total points
ID: 9836598
Hi dbrckovi,

1, It is one of the scripting languages supported by WSH Windows Scripting Host.
2, Very little, apart from that VB is compiled to an EXE, VBScript needs to run in a scripting host.
3. Take it as you find it, Don't need a compiler, quick 'try & see' etc. etc.
4. Mainly used in for example ASP pages, and sometimes sophisticated scripting that .bat and .cmd files can't handle. In most cases you could use VB however.
5. If you're already a VB programmer, then download the Windows scripting documentation from MSDN, Assuming you have Windows Scripting Host (comes with W2k and up) free download otherwise (at least it used to be), Then you're away!

Regards .. Alan
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 50 total points
ID: 9836627
VBScript is a VB-like language wich can be executed by a as scripting host such as Windows Scripting Host or a browser.
It has no IDE and can be written using notepad.
To test, write a line, say
MsgBox "Hello"
and save it as Hello.vbs.
Double click on the file in explorer and it'll probably work OK.
I'll look up some links for further information.

0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9836855
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 11

Author Comment

by:dbrckovi
ID: 9836964
Thats great!

Thanx guys, but one more Q.

Is there some VBScript Editor, which will add color to code, and call help for a selected keyword when I press F1 ( Like VB )?
0
 
LVL 10

Expert Comment

by:ADSaunders
ID: 9837000
dbrckovi,
here are several syntax coloring editors available, a lot of them free, just do a google search, but check that they are set up for VB / VBscript. Here are a few:
http://www.crimsoneditor.com/
http://www.pspad.com/index_en.html
http://www.lancs.ac.uk/people/cpaap/pfe/
.. Alan
0
 
LVL 11

Author Comment

by:dbrckovi
ID: 9837017
Thanx again!
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9837314
If you have VB you might as well use its IDE (with early binding) for most of the development and do any necessary changes (including to late binding) at the end.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

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

9 Experts available now in Live!

Get 1:1 Help Now