What is the meaning of Dim

Discussion in 'Ruby' started by chen li, Dec 14, 2006.

  1. chen li

    chen li Guest

    Hi all,

    Dim in VBA is a key word used to define variable. But
    what does it stand for? For example

    Dim varCopy As Long



    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    chen li, Dec 14, 2006
    1. Advertisements

  2. chen li

    Li Chen Guest

    In Ruby def is a breviation for the word define and what is the full
    name for dim in VBA? I want to know it just out of curiocity. I don't
    pay much attention to VBA but when I use WIN32OLE for Excel automation I
    would like to know a little more.


    Li Chen, Dec 14, 2006
    1. Advertisements

  3. chen li

    Mike Stok Guest

    My vague memories of Basic (not Visual Basic) include using DIM to
    dimension arrays - see http://en.wikipedia.org/wiki/

    I don't know when it changed into a general declaration lead-in.



    Mike Stok <>

    The "`Stok' disclaimers" apply.
    Mike Stok, Dec 14, 2006
  4. DIMension -- from the original Dartmouth BASIC, which descended from
    FORTRAN, where DIMENSION is spelled out.

    M. Edward (Ed) Borasky, Dec 14, 2006
  5. chen li

    Li Chen Guest

    Thank you all for the explanations,

    Li Chen, Dec 14, 2006
  6. chen li

    Tom Werner Guest

    VB was actually created as a joke programming language by a college
    student. He used 'Dim' for variable definition as a tongue-in-cheek
    insult to those foolish enough to stumble across and end up using his
    little project. Ironically, Microsoft ended up picking up the fledgling
    language as their script of choice for business app customization, much
    to the delight of the language's originator--for what could make better
    comedy than throngs of business professionals typing Dim all day long,
    secure in the thought that they were using a productive programming
    language. Just the thought of it still makes me twitter with glee.

    Tom Werner, Dec 14, 2006
  7. That story is untrue, and I believe meant as a joke. :)

    At least I hope so, because the proper explanation is that Dim means
    "dimension" as others mentioned before.

    Jeremy McAnally, Dec 14, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.