Corrected logic for processing multiple return values for conditional ROs.

Replaced xFF hex value with xA0 hex value in ProcessROReturnValue method.
This commit is contained in:
Rich 2014-01-02 22:26:05 +00:00
parent 2618a37dba
commit 6dfd259d42

View File

@ -693,10 +693,10 @@ namespace VEPROMS.CSLA.Library
for (int i = 0; i < lstROVals.Count; i++)
{
string tsts = Convert.ToInt32(multiRoValues[i][0]).ToString("X4");
myGrp.children[i].value = lstROVals[i];
myGrp.children[i].value = lstROVals[i].Replace("\xFF", "\xa0");
myGrp.children[i].roid = TableID.ToString("X4") + myGrp.ID.ToString("X8") + tsts;
myGrp.children[i].type = -1; // Multiple return value inherit type from parent
myGrp.children[i].title = lstROVals[i];
myGrp.children[i].title = lstROVals[i].Replace("\xFF", "\xa0");
}
}
else
@ -923,7 +923,8 @@ namespace VEPROMS.CSLA.Library
if (!DictROVar.ContainsKey(str.Substring(0, nxt))) // need a try/catch here.
{
DictROVar.Add(str.Substring(0, nxt), tmpval);
multiRoValues.Add(str.Substring(0, nxt));
if(nxt == 1)
multiRoValues.Add(str.Substring(0, nxt));
}
else
return null;