delaring and initializing "Dim a As Integer"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Ignarson

    #1

    delaring and initializing "Dim a As Integer"

    Hi, simple question

    Is there a syntax (other than the one below that is invalid) that will let
    me declare and initialize two variables at the same time (using VS 2003,
    1.1) ?
    Thank you
    Pete

    Dim a,b As Integer = 6 'Syntax error, invalid


  • Herfried K. Wagner [MVP]

    #2
    Re: delaring and initializing "Dim a As Integer"

    * "Peter Ignarson" <pignarson@hotm ail.com> scripsit:[color=blue]
    > Is there a syntax (other than the one below that is invalid) that will let
    > me declare and initialize two variables at the same time (using VS 2003,
    > 1.1) ?
    >
    > Dim a,b As Integer = 6 'Syntax error, invalid[/color]

    No.

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    • Armin Zingler

      #3
      Re: delaring and initializing &quot;Dim a As Integer&quot;

      "Peter Ignarson" <pignarson@hotm ail.com> schrieb[color=blue]
      > Hi, simple question
      >
      > Is there a syntax (other than the one below that is invalid) that
      > will let me declare and initialize two variables at the same time
      > (using VS 2003, 1.1) ?
      > Thank you
      > Pete
      >
      > Dim a,b As Integer = 6 'Syntax error, invalid[/color]

      Dim a As Integer = 6, b As Integer = 7


      --
      Armin

      How to quote and why:



      Comment

      Working...