Results 1 to 12 of 12

Thread: search a string

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    86

    Resolved search a string

    search a string

    i creatied thsi code
    VB Code:
    1. Private Sub Command1_Click()
    2. Dim ophalen As String
    3. Dim tekst1 As String
    4. Dim tekst2 As String
    5. Dim splitter As String
    6. Open "c:/program files/call of duty/main/config_mp.cfg" For Input As #1
    7. ophalen = Input(LOF(1), #1)
    8. Close #1
    9. For i = 0 To 200
    10. splitter = Split(ophalen, Chr(10))(i)
    11. [COLOR=red]
    12. if spitter.    = "seta name" then
    13. stop the i
    14. tekst1 = Replace(splitter, "seta name", "")
    15. tekst2 = Replace(tekst1, Chr(34), "")
    16. Text2.Text = tekst2
    17. Else
    18. Next i
    19. End If
    20. [/COLOR]
    21. End Sub

    there are error's offcourse
    the red part shows an if i want to detect the if or the first 9 character = "seta name"

    if not go to next i and else stop the loop
    i already know that there are more characters present in this part

    hope someone can help me with that part
    Last edited by davyquyo; Oct 4th, 2004 at 10:58 AM.

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