Added code to handle bad column mode information in the 16-bit Set.dbf file.

This commit is contained in:
John Jenko 2013-08-23 12:29:58 +00:00
parent 3fa8a7e9be
commit 4dcef78c4f

View File

@ -71,8 +71,18 @@ namespace DataLoader
string tstr1 = dr["Format"].ToString();
if (tstr1 != null && tstr1 != "")
{
if (ci == null) ci = new ConfigInfo(null);
ci.AddItem("Format", "Columns", tstr1);
switch (tstr1)
{
case "1":
case "2":
case "3":
case "4":
if (ci == null) ci = new ConfigInfo(null);
ci.AddItem("Format", "Columns", tstr1);
break;
default:
break;
}
}
// try to load in fix file data:
FileInfo fi = new FileInfo(pth + @"\" + ProcFileName + @".fix");