for (int c=0; c<nContacts; c++) {
String sFullName = oDbs.getStringNull(1,c,"")+" "+oDbs.getStringNull(2,c,"");
String sASCIIName = Gadgets.ASCIIEncode(sFullName);
if (DebugFile.trace) DebugFile.writeln("Searching "+sFullName+"...");
YSearchResponse oYsr = oBss.search(sYahooBossKey,
Gadgets.ASCIIEncode(oDbs.getStringNull(1,c,""))+" "+
Gadgets.ASCIIEncode(oDbs.getStringNull(2,c,"")),
sSite+".com");
if (oYsr.count()>0) {
if (DebugFile.trace) DebugFile.writeln("Found "+oYsr.results(0).title);
if (Gadgets.ASCIIEncode(oYsr.results(0).title).startsWith(sASCIIName)) {
nFound++;
DBCommand.executeUpdate(oCon, "UPDATE "+DB.k_contacts+" SET url_"+sSite+"='"+oYsr.results(0).url+"' WHERE "+DB.gu_contact+"='"+oDbs.getString(0,c)+"'");
} // fi
} else {
if (DebugFile.trace) DebugFile.writeln("No results found for "+sFullName);
}
} // next