Update RecordController.cs
This commit is contained in:
@@ -73,12 +73,16 @@ namespace BoerseDataConvert
|
||||
|
||||
if(tagsTable.CheckInvalidTag(tag)) throw new ArgumentException($"WARN: Invalid tag \"{tag}\", {cur_fileName} line {count + 1}");
|
||||
string tagname = tagsTable.GetTagName(tag);
|
||||
if (value == "") return tagname;
|
||||
if (value != "NULL" && tagsTable.HaveValueRanges(tag))//Checks if the tag have not a value ranges
|
||||
{
|
||||
if (tagsTable.IsString(tag) && tagsTable.CheckStringLengthToBig(tag,value.Length))//Checks if value type is string
|
||||
if (tagsTable.IsString(tag))//Checks if value type is string
|
||||
{
|
||||
if (tagsTable.CheckStringLengthToBig(tag, value.Length))
|
||||
{
|
||||
throw new ArgumentException($"WARN: Too long value \"{tag}\", \"{value}\", max allowed \"{tagsTable.GetTagName(tag)}\", {cur_fileName} line {count + 1}");
|
||||
}
|
||||
}
|
||||
else//Checks if value type is decimal
|
||||
{
|
||||
if (value == "") return tagname;
|
||||
|
||||
Reference in New Issue
Block a user