: 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