+ Reply to Thread
Results 1 to 3 of 3

Very Simple Question Regarding Dim

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Arizona, US
    MS-Off Ver
    Excel 2010
    Posts
    24

    Very Simple Question Regarding Dim

    What is the difference between:
    Dim a
    and
    Dim a%

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Very Simple Question Regarding Dim

    The percent symbol is ancient BASIC syntax for "varname is an integer".

    "The last character of the name can be a dollar sign ($) to indicate a string variable or a percent sign (%) to indicate an integer variable."

    This has been around for a very long time in the history of the BASIC family, and is supported in Visual Basic.NET (although it is no longer recommended - it can be rather obscure, as you have found.)
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    06-27-2013
    Location
    Arizona, US
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Very Simple Question Regarding Dim

    AH you are amazing!!! I searched the web for a good hour and couldnt find any information on it. You definately deserve that Forum Expert title
    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1