How To Program In Basic

Table of contents:

How To Program In Basic
How To Program In Basic

Video: How To Program In Basic

Video: How To Program In Basic
Video: The basics of BASIC, the programming language of the 1980s. 2024, December
Anonim

A voice card is an original way to congratulate relatives, friends or colleagues on any occasion. You do not have to look for suitable words for congratulations, on the Internet there is an opportunity to choose a thematic congratulation and send it to the addressee.

How to program in Basic
How to program in Basic

Necessary

a computer connected to the internet

Instructions

Step 1

Download the Visual Basic program on your computer, for this go to the link https://msdn2.microsoft.com/ru-ru/vbrun/default.aspx, wait for the download to complete and install it. Next, launch the application.

Step 2

A new form window will automatically open, in which you can add the interface of the application being created. There are two buttons in the project window: View Code and View Form. Clicking on the corresponding button opens a dialog box for viewing the code or the appearance of the program.

Step 3

To create a program in Basic, you need to perform two stages: design a form (create a program interface), with which a user dialogue will take place; write code that determines the nature and features of the program.

Step 4

Start creating the form of the future application. To do this, use the control templates in the toolbox. To add an image, click on the Picture Box or Image Box button. The first option is best used for animation, the second for static images. Similarly, you can add a text area.

Step 5

If necessary, add buttons and switches, frames, lists to the application interface. Use the Menu Design Window to create the program menu. After you finish editing the interface, switch to the Visual Basic code editing mode.

Step 6

Start typing the program code, first you need to declare variables and constants. For variables use the following text Dim [As Enter Variable Type]. To enter a constant - Const Enter name = Enter an expression or constant value.

Step 7

Next, write the text of the program. The following statements are used in Visual Basic programming: conditional (If "Enter a condition" Then "Enter an action to be performed"; [Else "Enter a second condition"]; then an action to be performed); loop control statement (Do {While "Enter loop start" | Until "Enter loop end"} expression).

Recommended: