String InStr : String « Data Types « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Data Types » StringScreenshots 
String InStr
String InStr
 
Imports System
Imports System.Data
Imports System.Collections

public class MainClass
   Shared Sub Main()
        Dim As String = "ABCD"
        Console.WriteLine(InStr(A, "C"))
   End Sub
End Class

           
         
  
Related examples in the same category
1.String Object: =, Is and Mid
2.String InsertString Insert
3.Combine Insert and IndexOfCombine Insert and IndexOf
4.Use the Mid function to replace within the stringUse the Mid function to replace within the string
5.Use String.Equals methodsUse String.Equals methods
6.Two ways to copy stringsTwo ways to copy strings
7.Compare String: case sensitive and not sensitiveCompare String: case sensitive and not sensitive
8.Two ways to concatenate stringsTwo ways to concatenate strings
9.Sub string with only one parameter
10.String PadLeftString PadLeft
11.String ConstructorString Constructor
12.String properties Length and Chars and method CopyTo of class StringString properties Length and Chars and method CopyTo of class String
13.Comparing stringsComparing strings
14.Demonstrating StartsWith and EndsWith methodsDemonstrating StartsWith and EndsWith methods
15.Using String searching methods: IndexOfUsing String searching methods: IndexOf
16.LastIndexOf to find a character in a stringLastIndexOf to find a character in a string
17.IndexOf to locate a substring in a stringIndexOf to locate a substring in a string
18.LastIndexOf to find a substring in a stringLastIndexOf to find a substring in a string
19.IndexOfAny to find first occurrence of character in arrayIndexOfAny to find first occurrence of character in array
20.LastIndexOfAny to find first occurrence of character in arrayLastIndexOfAny to find first occurrence of character in array
21.String Substring methodString Substring method
22.String class Concat methodString class Concat method
23.String ToLower and ToUpperString ToLower and ToUpper
24.String Trim methodString Trim method
25.String ToString methodString ToString method
26.String ToCharArray method String ToCharArray method
27.Concatenate the strings and display the resultsConcatenate the strings and display the results
28.The length of the stringThe length of the string
29.Display the first part of a string
30.String: set value and display
31.Concatenate the stringsConcatenate the strings
32.Display the length of the stringDisplay the length of the string
33.Get sub stringGet sub string
34.Replace the string occuranceReplace the string occurance
35.String compareString compare
36.String Replace DemoString Replace Demo
37.Concatenate String with Integer into one StringConcatenate String with Integer into one String
38.Compare two StringsCompare two Strings
39.Concatenate StringsConcatenate Strings
40.String CopyString Copy
41.String.Equals DemoString.Equals Demo
42.String IndexOf and InsertString IndexOf and Insert
43.String: Substring, LastIndexOfString: Substring, LastIndexOf
44.String SplitString Split
45.Convert to Upper case and Lower CaseConvert to Upper case and Lower Case
46.Trim String spaceTrim String space
47.String ends withString ends with
48.String IndexOf and Insert at a positionString IndexOf and Insert at a position
49.Sample for String.LastIndexOfAny(Char[])
50.Split by ControlChars.Tab
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.