Archive

Archive for the ‘Visual Basic.Net’ Category

Declaring Variables In Visual Basic.Net

August 16th, 2009 Rslegion No comments

Variables in VB.Net are declared using this stereotypical programming format.

1.) The language must be told that you are declaring a variable.
2.) The name of the variable must be given.
3.) The variable type must be set.

In a language such as AS3 the code would look like this:

var myVar:String

In visual basic, as it is intended to be a language for beginners, the code would look like this:

dim myVar as String

In visual basic, the word var is unused and is replaced by dim. Why dim is used is have no idea.

However, you will notice that the colon in AS3 is replaced by as .

This is the beauty of learning Visual Basic.Net as a first programming language. If you know to replace the word dim with declare, and you know that a string is text.

This line of code is written in Pure English.

declare myVariable as text

You don’t need to be an expert to understand this. Do ya’?

This is the case with a lot of VB.Net code and is a reason why a lot of people opt to learn this language before moving on to more complex languages such as PHP or C++

Categories: Visual Basic.Net Tags:

An Introduction To Visual Basic.Net

August 11th, 2009 Rslegion No comments

Visual Basic, in my opinion is an extremely easy programming language to learn. It where i first started many years ago. One of the the reasons that visual basic is easy to learn on a beginner level is because most of its commands are in the English language.

For Example in Actionscript 3, you’ll see code like this:

if(someCode == true)
{
someMoreCode = false
}

Whereas in Visual Basic.Net, the same code would look more like this:

If someCode = true Then someMoreCode = false

As you can see, Visual basic code looks much more simple to the beginner than AS3. Even though both example do exactly the same thing.

This is the reason why i recommend learning Visual Basic.Net as you’re first programming language.

Check back regularly for more Visual Basic.Net tutorials.