-1
我有地圖不兼容的密鑰類型SET <Id>爲MAP <Id,String>:保存錯誤
Map<id,String> map1= new Map<id,String>();
我分配值到這個地圖
map1.put(aList[j].id,err.getMessage()); // err is the database.error and aList is a list of accounts.
我完成所有的地圖記錄,並試圖循環我在這裏得到一個錯誤 保存錯誤:不兼容密鑰類型設置爲MAP
for(set<id> ids : map1.KeySet())
{
system.debug(map1.get(ids));// i get a error here
}
個
任何想法可能是造成這個 感謝
爲什麼這些-ve標記?僅僅因爲我自己找到了解決方案?如果其他人指出,可能不會有-ve標記:) – Prady 2012-03-13 07:29:56