diff --git a/CobXmlSupport/CobRow.cs b/CobXmlSupport/CobRow.cs index d0bcfc4..b6df273 100644 --- a/CobXmlSupport/CobRow.cs +++ b/CobXmlSupport/CobRow.cs @@ -376,9 +376,18 @@ namespace CobXmlSupport } if (tmpStr.Length > 0) { - __wordList.Add(new RowWord(tmpStr, wrdStart, false)); - tmpStr = ""; - wrdStart = 0; + if (tmpStr.Length > 1 && tmpStr.Substring(tmpStr.Length - 1, 1) == ".") + { + __wordList.Add(new RowWord(tmpStr.Substring(0, tmpStr.Length - 1), wrdStart, false)); + tmpStr = ""; + wrdStart = 0; + } + else + { + __wordList.Add(new RowWord(tmpStr, wrdStart, false)); + tmpStr = ""; + wrdStart = 0; + } } if (__wordList.Count > 0) { diff --git a/CobXmlSupport/GenCobCode.cs b/CobXmlSupport/GenCobCode.cs index 9410179..cb6146e 100644 --- a/CobXmlSupport/GenCobCode.cs +++ b/CobXmlSupport/GenCobCode.cs @@ -355,7 +355,7 @@ namespace CobXmlSupport } return strCobCode; } - + //xxxxxxxxxxxxxxxhär sker detxxxxxxxxxxxxxxx private string valueChecker(string strLDisp, string strLStdValue, string strCobCode) { if (chkValues.Checked) @@ -523,6 +523,7 @@ namespace CobXmlSupport outText.Text += "\r\n" + wrkStr; } + //xxxxxxxxxxxxxxxxx här är jag xxxxxxxxxxx /// /// Creates a CobRow object from a cobol declaration text @@ -671,7 +672,7 @@ namespace CobXmlSupport btnTestThings.Visible = S.ettingSpecials; formLoading = false; - cmbLastFile.Text = cmbLastFile.Items[0].ToString(); + // cmbLastFile.Text = cmbLastFile.Items[0].ToString(); } private void btnClose_Click(object sender, EventArgs e) @@ -709,7 +710,7 @@ namespace CobXmlSupport } if (occParRows.Length > 0) { - genCode.CodeShower.Text += occParRows + " )\r\n"; + genCode.CodeShower.Text += " (" + occParRows + " )\r\n"; } } } @@ -1111,7 +1112,7 @@ namespace CobXmlSupport } if (occParRows.Length > 0) { - genMoves.CodeShower.Text += occParRows + " )\r\n"; + genMoves.CodeShower.Text += " (" + occParRows + " )\r\n"; } } } @@ -1175,13 +1176,13 @@ namespace CobXmlSupport genExtMoves.CodeShower.Text += "\r\n MOVE 0 TO " + cr.CountIn; if (occParRows.Length > 0) { - genExtMoves.CodeShower.Text += occParRows + " )"; + genExtMoves.CodeShower.Text += " (" + occParRows + " )"; } genExtMoves.CodeShower.Text += "\r\n IF " + cr.CountIn; if (occParRows.Length > 0) { - genExtMoves.CodeShower.Text += occParRows + " )"; + genExtMoves.CodeShower.Text += " (" + occParRows + " )"; } genExtMoves.CodeShower.Text += "\r\n > 0";