返回介绍

Visual Basic

发布于 2025-02-22 22:20:00 字数 4651 浏览 0 评论 0 收藏 0

In this part of the Visual Basic tutorial, we will introduce the Visual Basic programming language.

Goal

The goal of this tutorial is to get you started with the Visual Basic programming language. The tutorial covers the core of the Visual Basic language. Variables, arrays, control structures and other core features. It does not cover graphical interface development.

Visual Basic

The Visual Basic programming language is a high-level programming language for the .NET Framework. It is a very popular language. Currently, it is one of the top 10 popular languages in the world. It was created for the Windows platform. The Mono project has created a clone for the Linux and Mac platforms. The Visual Basic was created to be easy to learn. It was derived from the family of BASIC languages. It is an object oriented, compiled language. The source code is compiled into executable (.exe) files, which are executed by the .Net platform. Visual Basic underwent many changes since its initial release. It was heavily criticised for its poor design. Many of the shortcomings were fixed. Some of the not so good relics still remain in the syntax. Once considered a simpler cousin to C#, over the years it became a full featured advanced programming language. Its popularity rose and declined.

Programming languages

There are currently several widely used programming languages. The following list is based on the TIOBE Programming Community Index. The numbers are from August 2010. Note that these figures are only illustrative. No one knows the exact numbers.

PositionLanguageRatings
1Java18%
2C17.9%
3C++9.7%
4PHP9.2%
5Visual Basic5.4%
6C#5%
7Python4.2%
8Perl3.4%
9Objective C3.2%
10Delphi2.4%

Java is the most widely used programming language. Java excels in creating portable mobile applications, programming various appliances and in creating enterprise applications. Every fourth application is programmed in C/C++. They are mainly used for creating operating systems and various desktop applications. C/C++ are the most widely used system programming languages. Most famous desktop applications were created in C++. May it be MS Office, Macromedia Flash, Adobe Photoshop or 3D Max. These two languages also dominate the game programming business.

PHP dominates over the Web. While Java is used mainly by large organisations, PHP is used by smaller companies and individuals.

Visual Basic represents the popularity of rapid application development and the dominance of Microsoft.

The C# was planned to be the next big language. It should compete mainly with Java and C/C++ languages.

Python and PERL are popular scripting languages and close competitors.

The popularity of the Objective C stems from Mac and their innovative appliances.

Deplhi is a popular RAD development tool.

Compiling

Examples in this tutorial were tested on Linux and Windows XP. On Linux I have used the Mono Visual Basic compiler. On Windows, Visual Basic 2008 Express Edition was used.

On Linux, we need to have installed the Mono Visual Basic compiler. It is called vbnc .

$ vbnc simple.vb 
$ ./simple.exe 
This is Visual Basic

We compile and run a simple Visual Basic program on Linux.

Under Windows, create a new project. Select File/New Project or click Ctrl+N and select Console application.

Console application
Figure: Console application

To run an example, click Ctrl+F5.

Sources

The following three sources were used to create this tutorial:

In this part of the Visual Basic tutorial, we have introduced the Visual Basic language.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文