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. one stupid question..

one stupid question..

Scheduled Pinned Locked Moved Visual Basic
questioncsharpc++data-structures
2 Posts 1 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.
  • P Offline
    P Offline
    pnpfriend
    wrote on last edited by
    #1

    I'm sorry to ask you this question .. but I have to now in c++ after you declare the array and when you want to get the content of hte array item 2 then you do char k[10]={'k','m','g'...}; cout<< k[1]<<" "; how to do it in VB.Net?? I wrote something like below and got error.. why is that??? Dim sArray() As String Dim i As Integer i=0 sArray(i) = "a string"

    P 1 Reply Last reply
    0
    • P pnpfriend

      I'm sorry to ask you this question .. but I have to now in c++ after you declare the array and when you want to get the content of hte array item 2 then you do char k[10]={'k','m','g'...}; cout<< k[1]<<" "; how to do it in VB.Net?? I wrote something like below and got error.. why is that??? Dim sArray() As String Dim i As Integer i=0 sArray(i) = "a string"

      P Offline
      P Offline
      pnpfriend
      wrote on last edited by
      #2

      Dim sArray(8) As String sovle the problem.. need to initialize the size of the array..

      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