Meaning of the “Dim” keyword in Basic

In: Programming

19 Dec 2008

Visual Basic is my favourite programming language. And sometimes I used to winder what does the Dim in a variable declaration stand for. I had read about it sometimes back but I did not remember much, today I Googled up a bit and found the meaning.

Dim stands for Dimension. It was used for declaring the size of an array.

Dim Arr(100)

So here we are declaring an array with the size of 100 (Actually 101 because in Basic it goes from 0-100 as against 0-99 in any other C based language like Java or C#)

The same keyword was extended to declare scalar(single value) variables e.g. Dim i as integer

Source

No related posts.

Comment Form

About this blog

This is the blog of . An entrepreneur from Mumbai, India. I write about tech, science, history, cats, movies, politics, atheism, design, programming and myself!

  • Jimmy Thakkar: "give a latest telephone bill and one that is year old to prove that you have been staying at the ad [...]
  • Yash: @Jimmy, I don't know but probably not. I contacted a passport agent and I was told they are many [...]
  • Jimmy Thakkar: "I collected all papers and today on my appointed date and time visited the nearest passport applica [...]
  • versha: Funny but logical ... great effort given by blogger ...but god is only one, and that is on our inne [...]
  • Virul: Agree...... [...]

Global footprint