用SubString()的方法将字符串分隔开来。

解决方案 »

  1.   

    用split方法拆分成数组
            Dim strCode() As String
            Dim i As Integer        strCode = TextBox1.Text.Split("'")
            For i = 0 To strCode.Length - 1        Next
      

  2.   

    public string[] Split(
       char[] separator,
       int count
    );
      

  3.   

    string str = 股票代码字符串;
    string[] strA;
    strA = str.Split(char.Parse(","));
      

  4.   

    string words = "this,is,a,list,of,words";
     string [] split = words.Split(',');
     foreach (string s in split) {
    ....
    }s[1]="is";
      

  5.   

    对不起:
    string [] split = words.Split(new Char[] {','});
      

  6.   

    TextBox1.Text.Split(new char[]{','})