Yash’s adventures with life, business and technology
In: Programming
19 Dec 2008Visual 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

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