What is the difference between vbscript and vb.net?

What is the difference between vbscript and vb.net?

+7
vbscript
source share
3 answers

Except for sharing syntax and keywords, these are completely different languages. VBscript is a very lightweight language, usually used for short scripts, while VB.Net is usually used to create complete desktop or web applications.

You can try searching java vs javascript , and many of these pages will describe the differences between a scripting language and a normal programming language, javascript is similar to vbscript, and java is similar to vb.net.

+7
source share

VBScript is a scripting language that is used primarily for small automated tasks.

The most powerful Windows technology is the .NET Framework. Visual Basic has been modified to be a true object-oriented language when working with the .NET Framework, and this syntax is called VB.NET.

+2
source share

VB Script :

Quote from this answer:

VBScript is a subset of VB and is a scripting language that can be used to run a set of commands similar to the old-school DOS package file. Typically, a scripting language cannot be used to create a full-blown binary application, and it cannot be compiled to an executable binary.

The vb script has been used a lot for writing plugins and extensions for browsers in the past. Browsers could interpret the vb script.

Visual Basic.Net (aka VB.Net)

Visual Basic.Net, on the other hand, is simply the next progression of the Visual Basic language for the target CLR runtime, which is a virtual runtime (for example, JVM in Java) of .NET-based applications.

Historically, when introducing the .NET infrastructure, Microsoft introduced a completely new C # language (to compete with Java), but since most programmers, following MS technologies, were from Visual Basic, so MS decided to use VB.Net with C in parallel # .Net. Thus, for VB programmers, it did not become necessary to learn the syntax of a completely new language (C #) from scratch in order to start writing new applications focused on the .NET Framework.

Compilation of VB language logistics :

VB script => Interpreted language. It does not compile. You can get more information here.

Visual Basic => Compiled into native code, packed into * .dll or * .exe files.

Visual Basic.Net => VB.Net is compiled into MSIL (Microsoft Intermediate Language) code (similar to byte code in the Java world), packed inside * .dll or * .exe files.

0
source share

All Articles