.net中string無重復(fù)數(shù)字的實(shí)現(xiàn)方法_.Net教程
推薦:.net 頁面指定區(qū)域打印的方法.net 頁面指定區(qū)域打印的方法,需要的朋友可以參考一下
復(fù)制代碼 代碼如下:hl5o.cn
//string strText = "1334677999";實(shí)現(xiàn)無重復(fù)
public static string qu(string lab)
{
string strResult = string.Empty;
for (int intIdx = 0; intIdx < lab.Length; intIdx++)
{
if (strResult.IndexOf(lab.Substring(intIdx, 1)) < 0)
{
strResult += lab.Substring(intIdx, 1);
}
}
return strResult;
}
分享:VB.NET 中刪除DataGridView中所選行的小例子之前為這個(gè)刪除所選行還費(fèi)了點(diǎn)腦筋,因?yàn)槊縍emoveat一行之后,后面的行會(huì)自動(dòng)縮進(jìn),而且會(huì)自動(dòng)選中下一行,很麻煩,后來發(fā)現(xiàn)很簡單:
相關(guān).Net教程:
- asp.net如何得到GRIDVIEW中某行某列值的方法
- .net SMTP發(fā)送Email實(shí)例(可帶附件)
- js實(shí)現(xiàn)廣告漂浮效果的小例子
- asp.net Repeater 數(shù)據(jù)綁定的具體實(shí)現(xiàn)
- Asp.Net 無刷新文件上傳并顯示進(jìn)度條的實(shí)現(xiàn)方法及思路
- Asp.net獲取客戶端IP常見代碼存在的偽造IP問題探討
- VS2010 水晶報(bào)表的使用方法
- ASP.NET中操作SQL數(shù)據(jù)庫(連接字符串的配置及獲取)
- asp.net頁面?zhèn)髦禍y試實(shí)例代碼
- DataGridView - DataGridViewCheckBoxCell的使用介紹
- asp.net中javascript的引用(直接引入和間接引入)
- 三層+存儲(chǔ)過程實(shí)現(xiàn)分頁示例代碼
- 相關(guān)鏈接:
- 教程說明:
.Net教程-.net中string無重復(fù)數(shù)字的實(shí)現(xiàn)方法
。