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. string access

string access

Scheduled Pinned Locked Moved Visual Basic
c++data-structuresquestion
2 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.
  • U Offline
    U Offline
    Unplugged
    wrote on last edited by
    #1

    this is really stupid, but how do I access one character from a string. in C++ it looks like: stringvar[5] :-D when I try it in VB stringvar(5) :~ it says that it expects and array. but I can't declare an array of characters which is what I need. :wtf: ICXC NIKA

    R 1 Reply Last reply
    0
    • U Unplugged

      this is really stupid, but how do I access one character from a string. in C++ it looks like: stringvar[5] :-D when I try it in VB stringvar(5) :~ it says that it expects and array. but I can't declare an array of characters which is what I need. :wtf: ICXC NIKA

      R Offline
      R Offline
      Roger Wright
      wrote on last edited by
      #2

      Try: onechar = Mid(stringvar,startpos,numchars) Instead of marrying again, I think I'll just find a woman I don't like very much and give her a house...

      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