variable declaration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maximoaldea
    New Member
    • Jul 2008
    • 2

    variable declaration

    is there a difference between:

    Dim tmpSTR1, tmpSTR2 as string

    - and -

    Dim tmpSTR1 as string, tmpSTR2 as string


    ???
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    yes there is difference.

    in the first case only the second variable is string but the first one is variant by default.

    in the second case both the variables are string.

    Comment

    Working...