Dim name() As String
 name = string.Split("/")

解决方案 »

  1.   

    using System;
    using System.Collections;public class MyClass
    {
    public static void Main()
    {
    string s= "2004/06/25";
    string[] ary = s.Split('/');
    for(int i=0;i<ary.Length;i++)
    {
    Console.WriteLine(ary[i]);
    }
    Console.Read();
    }
    }
      

  2.   

    split 方法 String 类自带的
      

  3.   

    string STR="2004/06/25";
    STR=Replace(STR,"/","、")
    不知道是这样么?
      

  4.   

    哦 对了  还有一个问题:
    我想把一个字符串 赙值到一个dropdownlist里在画面上显示出来 ,请问我应该赙到dropdownlist 的哪个属性  我试了好多 都报异常了!!
      

  5.   

    用DropdownList属性Items中的Add()方法添加。
      

  6.   

    string[] result;
    result=stringInput.split(new char[] {'/'});
    foreach(string s in result)
    {
       Console.writeLine(s);
    }
      

  7.   

    string s= "2004/06/25";
    string[] ary = s.Split('/');
      

  8.   

    string a="2004/06/25";
    string[] sz=s.Split('/');
      

  9.   

    string str= "2004/06/25";
    string[] aa = str.Split('/');