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. help with spliting:still didn't get a help

help with spliting:still didn't get a help

Scheduled Pinned Locked Moved Visual Basic
csharphelpquestion
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hi there, basically i am new to VB.net and need a bit of help i have a string like "Track 01 (2.33)". this string is an item of of a combo box what i need to do is by clicking a button separating "Track 01" and put it in a list box and "2.33" in another list box... can you help me plaese?

    P 1 Reply Last reply
    0
    • L Lost User

      hi there, basically i am new to VB.net and need a bit of help i have a string like "Track 01 (2.33)". this string is an item of of a combo box what i need to do is by clicking a button separating "Track 01" and put it in a list box and "2.33" in another list box... can you help me plaese?

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

      I assume you know how to put the item into the list box. to split the string you can you String.Split or you can use Instr(), Left(),Mid(), and Right(). Dim pos As Integer Dim lstr As String Dim rstr As String Dim str As String str = "track 01 (2.33)" pos = InStr(str,"(") If pos <> 0 Then lstr = Left(str,pos) rstr = Right(str,Len(str)-pos) good luck

      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