作者DearKurt ("小朋友"会自己找出路...)
看板C_Sharp
标题Re: [问题] Arraylist 插入值的问题
时间Mon Mar 2 00:27:32 2009
: 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