Results 1 to 2 of 2

Thread: VB AND HTML! READ!!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    99

    Arrow

    (I'm fairly new to VB, so if someone could help me out with actual code, i'd really appriciate it!)

    How can I have VB isolate X amount of characters from one parsed string to another? For example, if VB was given:

    bob jim stevens
    bob bobo stevens

    How could VB save the jim and bobo?

    Also, how could VB find the location of the bob?

    thanks
    ___________________________
    Chris

  2. #2
    Guest
    Code:
    Private Sub Command1_Click()
    'here is an example
    'of finding and getting
    'strings, using Mid
    'and InStr
    
        Dim lngPos As Long
        Dim TheString As String
        TheString = "bob is cool"
        lngPos = InStr(1, TheString, "bob")
        TheString = Mid(TheString, lngPos, 3)
        MsgBox TheString
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width