If error parsing string for default plant format name if subformat from curset.dat, use parent format
This commit is contained in:
parent
12ded2d9d9
commit
78cf6ccdfd
@ -214,7 +214,14 @@ namespace DataLoader
|
||||
if (format.IndexOf(' ') > -1) // will have spaces if it's a user format
|
||||
{
|
||||
string part1 = format.Substring(0, format.IndexOf(' '));
|
||||
string part2 = format.Substring(format.LastIndexOf(' ') + 1, 2);
|
||||
string part2 = null;
|
||||
try
|
||||
{
|
||||
part2 = format.Substring(format.LastIndexOf(' ') + 1, 2);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
format = part1 + part2;
|
||||
|
||||
// get the parent format's id (for example, AEP for AEP00).
|
||||
|
Loading…
x
Reference in New Issue
Block a user