diff --git a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs index 087b1c5d..6cf15ddd 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/ROFSTLookup.cs @@ -2098,6 +2098,15 @@ namespace VEPROMS.CSLA.Library { string resstr = rtnstr.Substring(0, indx); int endHsp = rtnstr.IndexOf(")", indx); + + //B2026 - 002 handle if parens inside a HSP + int startpos = indx + 5; + while (rtnstr.Substring(startpos, endHsp - startpos).Contains("(")) + { + startpos = rtnstr.IndexOf("(", startpos + 1, endHsp - startpos) + 1; + endHsp = rtnstr.IndexOf(")", endHsp + 1); + } + string tmpstr = rtnstr.Substring(indx + 5, endHsp - indx - 5); // B2017-012 Don't convert space to hard spaces for XY Plots.