使用 ta.QueryUtil
var 输出:字符串 = ""
var personIDs = new String[] {"98", "5"}
output += "***** 计算每个联系人的银行账户 \n"
对于(personID 中的 personID)
{ var person = QueryUtil.findPerson(personID)
如果(人!= null){
output += person.DisplayName + " has " + person.BankAccounts.length + " bank accounts. \n"
} 别的 {
output += "person not found for " + personID + "\n"
}
}