Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. what is the diff... [modified]

what is the diff... [modified]

Scheduled Pinned Locked Moved Visual Basic
question
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nitin3
    wrote on last edited by
    #1

    pls tll me what is the diff between these two declarations dim i ,j as integer //and dim i as integer dim j as integer thanks -- modified at 3:43 Wednesday 12th September, 2007

    C C M R 4 Replies Last reply
    0
    • N nitin3

      pls tll me what is the diff between these two declarations dim i ,j as integer //and dim i as integer dim j as integer thanks -- modified at 3:43 Wednesday 12th September, 2007

      C Offline
      C Offline
      chandu004
      wrote on last edited by
      #2

      please verify your post once again and modify it.

      1 Reply Last reply
      0
      • N nitin3

        pls tll me what is the diff between these two declarations dim i ,j as integer //and dim i as integer dim j as integer thanks -- modified at 3:43 Wednesday 12th September, 2007

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        nitin3 wrote:

        pls tll me what is the diff between these two declarations dim i ,j as integer //and dim i,j as integerer

        The second lacks a space between the i and comma. The second also contains a spelling mistake.


        Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

        1 Reply Last reply
        0
        • N nitin3

          pls tll me what is the diff between these two declarations dim i ,j as integer //and dim i as integer dim j as integer thanks -- modified at 3:43 Wednesday 12th September, 2007

          M Offline
          M Offline
          MohammadAmiry
          wrote on last edited by
          #4

          nitin3 wrote:

          dim i ,j as integer //and dim i as integer dim j as integer

          I don't see any differences! In vb6 the first statement resulted in declaration of i As Variant and j as integer. But in VB.NET both declarations are the same!

          C N 2 Replies Last reply
          0
          • M MohammadAmiry

            nitin3 wrote:

            dim i ,j as integer //and dim i as integer dim j as integer

            I don't see any differences! In vb6 the first statement resulted in declaration of i As Variant and j as integer. But in VB.NET both declarations are the same!

            C Offline
            C Offline
            chandu004
            wrote on last edited by
            #5

            yah what u said is correct.

            1 Reply Last reply
            0
            • M MohammadAmiry

              nitin3 wrote:

              dim i ,j as integer //and dim i as integer dim j as integer

              I don't see any differences! In vb6 the first statement resulted in declaration of i As Variant and j as integer. But in VB.NET both declarations are the same!

              N Offline
              N Offline
              nitin3
              wrote on last edited by
              #6

              MohammadAmiry wrote:

              ..i As Variant and...

              dim i ,j as integer ' i thought this declares both i & j as integer. thanks again

              1 Reply Last reply
              0
              • N nitin3

                pls tll me what is the diff between these two declarations dim i ,j as integer //and dim i as integer dim j as integer thanks -- modified at 3:43 Wednesday 12th September, 2007

                R Offline
                R Offline
                rohitsrivastava
                wrote on last edited by
                #7

                both are one and the same thing what u suitable u can do it if u write single line then this is smart work

                N 1 Reply Last reply
                0
                • R rohitsrivastava

                  both are one and the same thing what u suitable u can do it if u write single line then this is smart work

                  N Offline
                  N Offline
                  nitin3
                  wrote on last edited by
                  #8

                  in vb 6 ------- Dim a(10), k, j As Integer 'this will not work 'but thi will Dim a(10) as integer dim k, j As Integer 'input values 1-10 '------------------- For j = 1 To 10 a(j) = InputBox("Enter a number") Next k = a(1) For j = 1 To 9 If k < a(j + 1) Then k = a(j + 1) End If Next MsgBox k thats why ask about it !!! thanks for response

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups