Results 1 to 2 of 2

Thread: InStr in .net

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Location
    Gothenburg
    Posts
    13

    InStr in .net

    Is it just an old inheritage from vb6 or is it still the right way to do it? Is there another way?

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    take a look at the IndexOf property. eg:
    VB Code:
    1. Dim strString As String = "some text with a \ in"
    2. Dim x As Integer = strString.IndexOf("\")
    3. MessageBox.Show("the \ is located at ... " & x)
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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