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
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.Net Language Statement

VB.Net Language Statement

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
3 Posts 2 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.
  • F Offline
    F Offline
    Fernando Soto
    wrote on last edited by
    #1

    Hi All; What is the difference between these two statements with uses [String} or just using String Dim myStr As [String]() = {"One", "Two", "", "Three", "Four"} And Dim myStr As String() = {"One", "Two", "", "Three", "Four"} Thanks

    D 1 Reply Last reply
    0
    • F Fernando Soto

      Hi All; What is the difference between these two statements with uses [String} or just using String Dim myStr As [String]() = {"One", "Two", "", "Three", "Four"} And Dim myStr As String() = {"One", "Two", "", "Three", "Four"} Thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      They're identical statements. There is no difference. The square brackets around the term String just mean that this is an escaped name. Normally, you can't use a name that is the same as a VB reserved word, like Case or Friend. The square brackets allow you to use the name as a type name, but only if you reffer to it using the square brackets around the name. Docs on it are here[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      F 1 Reply Last reply
      0
      • D Dave Kreskowiak

        They're identical statements. There is no difference. The square brackets around the term String just mean that this is an escaped name. Normally, you can't use a name that is the same as a VB reserved word, like Case or Friend. The square brackets allow you to use the name as a type name, but only if you reffer to it using the square brackets around the name. Docs on it are here[^]. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        F Offline
        F Offline
        Fernando Soto
        wrote on last edited by
        #3

        Thanks for the info. :-)

        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