Several adjustments on filling xml with data

This commit is contained in:
2015-07-09 13:20:37 +02:00
parent 83b91ab8fc
commit a1554fc937
5 changed files with 290 additions and 162 deletions

View File

@ -12,6 +12,7 @@ namespace CobXmlSupport
private List<RowWord> __wordList;
private string __rowSource;
private int __startPos;
private int __occNum;
public CobRow(string rowSource)
{
@ -111,6 +112,18 @@ namespace CobXmlSupport
}
}
public int occNum
{
get
{
if (this.isOccurs)
{
return __occNum;
}
else return 1;
}
}
public static string checkLongNames(string inStr, int maxLngth=30)
{
string tmp = inStr;
@ -224,6 +237,11 @@ namespace CobXmlSupport
if (__wordList[i].ToString().ToLower() == searchVal.ToLower())
{
tmp = "true";
if (__wordList[i + 1].NumVal().Length > 0)
{
__occNum = int.Parse(__wordList[i + 1].NumVal());
}
i = __wordList.Count;
}
break;