在c#中能这样写吗?
string myarray="465421245724524224";
string myresult="";
myresult=Split(myarray,2);
为什么vs 2003这个环境根本就不认识Split呢?
它会说:Split在类或命名空间"Webtest.Mellotest"中不存在,"Webtest.Mellotest"是我建的专案和窗体名,那咋用呢?
string myarray="465421245724524224";
string myresult="";
myresult=Split(myarray,2);
为什么vs 2003这个环境根本就不认识Split呢?
它会说:Split在类或命名空间"Webtest.Mellotest"中不存在,"Webtest.Mellotest"是我建的专案和窗体名,那咋用呢?
这两年来慢慢习惯了光说不练
///*************************///
string myarray="465421245724524224";
string[] myresult=myarray.Split('2');
string myresult="";
myresult=Split(myarray,2);
改成
string myarray="465421245724524224";
string[] myresult=myarray.Split('2');
string myresult="";
myresult=Split(myarray,2);
---------------
这样写是不对的
string myarray="465421245724524224";
string[] myresult;
myresult=myarray.Split('2');
1.怎么样从右面起,每隔3位用","分开,
2.分开后所得的值入在myresult中,能否将myresult中的值直接赋给一个文本框,比如:
txt1.Text=myresult
string strall = "";
while (true)
{
strall = str.Substring(str.Length-3) + strall;
str = str.Substring(0,str.Length-3);
if (str.Length <= 3)
{
break;
}
}
textBox1.Text = strall;
////////////////////////////////////////////////////////////////////
1.怎么样从右面起,每隔3位用","分开,
2.分开后所得的值入在myresult中,能否将myresult中的值直接赋给一个文本框,比如:
txt1.Text=myresult