What are the major differences between Visual Basic and VBScript?

Questions by RajivPrasad   answers by RajivPrasad

Showing Answers 1 - 9 of 9 Answers

Rita Bhukta

  • Apr 10th, 2007
 

They are different: You dont compile VB scripts like in Visual Basic. You just distribute them as plain text HTML files.The script engine interprets this text into intermediate code when it loads the Web page. It also creates a symbol table so that it can quickly look up things such as event-procedures and variable names. The scripting engine uses the ActiveX Scripting technology to interact with the browser.
IE supports VB scripts on your computer& we can create Web pages with VB scripts. For Visual Basic, you need a text editor,ActiveX,Control Pad and Web Browser.
Some  other differences:

  • Debugging  VBScript doesn't have a debugger like Visual Basic. You'll resort to using lots of message boxes, instead.

  • Event-handlers  You don't have an editor in which you select an object and event to edit an event-procedure. You have to name event-procedures in your scripts so that the scripting engine can find the appropriate handler when an object fires an event.

  • Forms  VBScript doesn't have a forms editor. It doesn't need one, because you can't display forms anyway. You put forms and controls on the Web page, instead. You can use the ActiveX Control pad to insert all those nasty <OBJECT> tags in your Web page, however.

  Was this answer useful?  Yes

cleo_nerd

  • Feb 25th, 2010
 

There are two main differences :

1. VB script is 'untyped' and VB is 'typed'. This means that the datatypes doen NOT need to be set while declaring variables in VBScript unlike in VB.Thus variable in VBScript can hold value of any datatype. This allows to change the type of the variable during the execution of the program like :
 Dim x
x= 7
x='seven'

This flexibility is not offered in VB.

2.VBScript is a 'Interpreted'Programming language meaning thereby it is easier to program but slower to execute since each time the program si run, it has to be interpreted (interrogated) line by line. On the other hand VB is a 'Complied'programming language meaning has complex syntax and follows strict programming practices. Once it is complied, no other programmer can look into the cource code.The output of a compiler( a special computer program) is an executable binary program.

goldi sharma

  • Jul 5th, 2015
 

VISUAL BASIC is also a VISUAL and Event-driven Programming Language.
VISUAL BASIC is a high level programming language which evolved from the earlier DOS version called BASIC. BASIC means Beginners All-purpose Symbolic Instruction Code.

VBScript is a scripting language. A scripting language is a light weight programming language.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions