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:
		@@ -402,8 +402,13 @@ namespace DataLoader
 | 
				
			|||||||
			string s = dr["text"].ToString().PadRight(130, ' ');
 | 
								string s = dr["text"].ToString().PadRight(130, ' ');
 | 
				
			||||||
			string rid = dr["recid"].ToString(); // RECID
 | 
								string rid = dr["recid"].ToString(); // RECID
 | 
				
			||||||
			string num = s.Substring(85, 20).TrimEnd();
 | 
								string num = s.Substring(85, 20).TrimEnd();
 | 
				
			||||||
			string fmt = s.Substring(75, 8).TrimEnd();
 | 
								string fmt = s.Substring(75, 8).TrimEnd(); // base format name
 | 
				
			||||||
			if (fmt == "") fmt = null;
 | 
								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 ismulti = false;
 | 
				
			||||||
			bool conv_caret = true;
 | 
								bool conv_caret = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user