Fixed problem where the sub-formats this was introduced with a fix for a procedure in the Wolf Creek SYS set.

This commit is contained in:
John Jenko 2012-06-27 14:04:51 +00:00
parent db83de84d8
commit b405d88a83

View File

@ -402,8 +402,13 @@ namespace DataLoader
string s = dr["text"].ToString().PadRight(130, ' ');
string rid = dr["recid"].ToString(); // RECID
string num = s.Substring(85, 20).TrimEnd();
string fmt = s.Substring(75, 8).TrimEnd();
if (fmt == "") fmt = null;
string fmt = s.Substring(75, 8).TrimEnd(); // base format name
string ufmt = s.Substring(83, 2).TrimEnd(); // user format number (see TSectEditDlg::SetupWindow() PROMSNT\EXE\WINED\SECTEDIT.CPP)
// Build the format name if one was specified for this section.
if (fmt == "")
fmt = null;
else if (ufmt.Length == 2 && char.IsDigit(ufmt[0]) && char.IsDigit(ufmt[1])) // user format reference must be two digits
fmt = fmt.PadRight(8,' ') + ufmt; // append the user format reference
bool ismulti = false;
bool conv_caret = true;