C2022-003-Change-Textboxes-to-RTF-3

This commit is contained in:
2026-01-06 13:18:49 -05:00
parent 72c2bd90e4
commit 5a2c0460aa
2 changed files with 8 additions and 11 deletions

View File

@@ -1975,7 +1975,9 @@ namespace RODBInterface
elem.SetAttribute("RecID", RecID); elem.SetAttribute("RecID", RecID);
elem.SetAttribute("ParentID", node.GetAttribute("RecID")); elem.SetAttribute("ParentID", node.GetAttribute("RecID"));
elem.SetAttribute("Table", node.GetAttribute("Table")); elem.SetAttribute("Table", node.GetAttribute("Table"));
AccPageID = Regex.Replace(AccPageID, @"\\u([0-9]{1,4})\?", m => Convert.ToChar(int.Parse(m.Groups[1].Value)).ToString()); // RO Editor add symbols C2022 - 003 //AccPageID = Regex.Replace(AccPageID, @"\\u([0-9]{1,4})\?", m => Convert.ToChar(int.Parse(m.Groups[1].Value)).ToString()); // RO Editor add symbols C2022 - 003
string pattern = @"\\u([0-9]{1,4})\?";
AccPageID = Regex.Replace(AccPageID, pattern, ""); // Remove any symbols from AccPageID - RO Editor add symbols C2022 - 003
elem.SetAttribute("AccPageID", AccPageID); elem.SetAttribute("AccPageID", AccPageID);
} }
} }
@@ -2258,7 +2260,7 @@ namespace RODBInterface
// select all of the field definition records in this table. // select all of the field definition records in this table.
// strGetFields = "SELECT RecID, Info from " + elem.GetAttribute("Table"); // strGetFields = "SELECT RecID, Info from " + elem.GetAttribute("Table");
strGetFields = "SELECT RecID, Info from " + TableName; strGetFields = "SELECT RecID, Info from " + TableName;
strGetFields = strGetFields + " where RecType = 2"; // + rtype.ToString(); strGetFields = strGetFields + " where RecType = 2";
DBE.Command(strGetFields); DBE.Command(strGetFields);
DBE.Reader(); DBE.Reader();

View File

@@ -706,25 +706,20 @@ namespace ctlXMLEditLib
object o = myHT[str]; object o = myHT[str];
hwnd = (RichTextBox) o; hwnd = (RichTextBox) o;
string result1 = ""; StringBuilder result1 = new StringBuilder();
string Str = "";
char[] chrAry = hwnd.Text.ToCharArray(); char[] chrAry = hwnd.Text.ToCharArray();
foreach (int chr in chrAry) foreach (int chr in chrAry)
{ {
if (chr > 166) if (chr > 166)
{ {
Str = $"\\u{(int)chr}?"; result1.Append($"\\u{(int)chr}?");
result1 = result1 + Str;
} }
else else
{ {
result1 = result1 + (char)chr; result1.Append((char)chr);
} }
} }
hwnd.Text = result1.ToString();
hwnd.Text = result1;
imgdate = null; imgdate = null;
// if this is a required field and there is no text, put out an error // if this is a required field and there is no text, put out an error