Re: [問題] Arraylist 插入值的問題

看板C_Sharp作者 ("小朋友"會自己找出路...)時間17年前 (2009/03/02 00:27), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
: for (int j = 0; j<tempList.Count; j++) : { : if (tempList[j].Equals(pkid)) judge = 1; : //除以一千 : } : if (judge==0) myValue = myValue / 1000; : 下面是我的sql語法的code : public ArrayList Select_account_map(string account_us) : { : return base.GetArrayList("Select account_pkid from account_map : where account_us = '" + account_us + "' "); : } 有沒有GetArrayList的部份內容? 第一種可能GetArrayList沒寫好 return都是空的ArrayList 根本不會進到for loop裡面 第二種可能GetArrayList塞進去ArrayList的type不是Int 但你的pkid是Int 所以永遠不會相等 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.104.82.48
文章代碼(AID): #19ghTtL3 (C_Sharp)
文章代碼(AID): #19ghTtL3 (C_Sharp)