VBScript和VB.NET有什么区别?

10

vbscript和vb.net有什么区别?


相关帖子 - VB 和 VBScript 有什么区别 - RBT
3个回答

10
除了语法和关键字相似,它们是完全不同的语言。VBscript是一种非常轻量级的语言,通常用于编写短脚本,而VB.Net通常用于创建完整的桌面或Web应用程序。

您可以尝试搜索java vs javascript,许多页面将描述脚本语言和普通编程语言之间的区别,JavaScript类似于VBScript,Java类似于VB.Net。


3

VBScript是一种主要用于执行小型自动化任务的脚本语言。

.NET Framework是最强大的Windows技术。在使用.NET Framework时,Visual Basic已被修改为真正的面向对象语言,该语法称为VB.NET。


1

VB脚本:

引用自this的回答:

VBScript是VB的子集,是一种脚本语言,可以用于运行一组命令,类似于旧式DOS批处理文件。通常,脚本语言不能用于创建完整的二进制应用程序,并且不能编译为可执行的二进制文件。

过去,VB脚本在编写浏览器插件和扩展方面得到了广泛应用。浏览器能够解释VB脚本。

Visual Basic .NET(也称为VB .NET)

另一方面,Visual Basic .NET是Visual Basic语言的进化版本,目标是针对.NET框架基础应用程序的通用语言运行时(CLR),它是虚拟执行环境(如Java中的JVM)。

When the .NET framework was introduced, Microsoft created a new language called C# to compete with Java. However, since most MS technology programmers had a background in Visual Basic, Microsoft also provided an option for VB .NET to run parallel with C# .NET. This allowed VB programmers to avoid having to learn a completely new syntax (C#) from scratch in order to write applications targeting the .NET framework.
The compilation logistics for the VB series of languages are as follows:
- Visual Basic is compiled to native code and packaged inside *.dll or *.exe files. - VB script is an interpreted language and is not compiled. More details can be found here. - Visual Basic .NET is compiled to MSIL (Microsoft Intermediate Language) code (similar to byte code in the Java world) and packaged inside *.dll or *.exe files.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接