Author Topic: Visual Basic (3)  (Read 1488 times)

Offline JokeBOx

  • Advanced Member
  • *
  • Topic Author
  • Posts: 206
  • Karma: +8/-27
  • HELLO!!!!!!!!!!!!!!!
  • Awards Winner of 1 Photoshop Challenge Contest [COMMON]
    • View Profile
    • Awards
Visual Basic (3)
« on: February 04, 2012, 11:21 »
As a basis of programming, as in mathematics is a variable that can be various latter or word on each and assign value, data that we would work. The same can not be change or the same to get a myriad of other data that is the purpose of many programs.
Example.

x=1,

х=”visual basic”,

forum=”internet website”


The first is a variable that shows numbers and therefore not in quotes, while others are text variables. In Visual Basic these variables receive the name itself drawing the object where you want something to write, so the same name can change according to our wish and it will be the name of that variable, that obejct. So in our first program we have drawn an object to whom we gave the name lblHello. If you select the object right below gives us options to change the name (Name). Here below are given all the options that can change the object as (Apperance 1-3d) it is his appearance, (Caption) - This option is the variable that will assign the value, value of the building. Variable and the object is the same object layout, a variable's value, fact that object. At this facility the beginning we don't give a value, but the code we wrote a program that is equal to “Hello World!”.

Example. lblHello.Caption = “Hello World!”

If you wish to change the name of this object go right below select Name and place of lblHello write new name VARIABLE.

With this object in the program will be VARIABLE.Caption =”Hello World!”

All objects are placed on the left side and a selection of them will be able to draw objects, and the object who  write Hello World! and object who write Close.

 
BYE!