}
isBadActivityTable=false;
for (int i = 0; i < iNumTables; i++) {
RestoreTable(doIn, bIsTestOnly, bRestoreOneCompanyOnly,
iCompanyToResoreTo);
workDialog.SetProgress((iTestFile * iNumTables + i) * 100 / (2 * iNumTables));
}
if ( ! bRestoreOneCompanyOnly) restoredCompId=0;
if (iNumTables == (sTables.length - 1) && !bIsTestOnly) {
//this is an old import. We must add the AccountTypes Manually
DataConnection.AddDefaultAccountTypes(restoredCompId);