variable declarations

Hi,

this is kind of a basic and maybe a silly question, but also hopefully a simple one. in a few code snippets i have seen online, i have seen dim declarations made with variable names followed by ampersand or percent sign...such as

dim Dim LastRow&, LastCol%

what do these signs mean do they specify some kind of characteristic for the variable

thank you,

kriti



Answer this question

variable declarations

  • ImpureEvil

    I found one list on this page, there are probably better references around. Remember that this kind of declaring your variables is considered obsolete and should be avoided.

    Andrej



  • Deepak Hota

    thanks! makes sense. are there other such "shortcut" type declarations as well or anywhere i could find a list

  • jwrodriguez

    Hi,

    those are variable type declarations:

    Dim LastRow&

    is the same as

    Dim LastRow As Long

    [& represents Long, % is Integer, ...]

    Andrej



  • variable declarations