下面的语句可以实现复制表单的功能



public
string
exceptRepeatString(
string
oString,
char
spliter )
{
oString = replaceStr( oString );
string [] oStrAry = oString.Split( spliter );
string tStr = "" ;
for ( int i = 0 ; i < oStrAry.Length; i ++ )
{
// if ( ( i + 1 ) < oStrAry.Length && Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
if ( Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
{
tStr += oStrAry[i] + spliter.ToString();
}
}
return tStr;
}
{
oString = replaceStr( oString );
string [] oStrAry = oString.Split( spliter );
string tStr = "" ;
for ( int i = 0 ; i < oStrAry.Length; i ++ )
{
// if ( ( i + 1 ) < oStrAry.Length && Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
if ( Array.IndexOf( oStrAry, oStrAry[i],( i + 1 ) ) < 0 )
{
tStr += oStrAry[i] + spliter.ToString();
}
}
return tStr;
}