Projekteinstellungen erweitert
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -16,7 +17,7 @@ namespace WWTech_KanalSchnittstelle.Exporter.Kandis
|
||||
{ "KANHAL6.0",2167 }
|
||||
};
|
||||
}
|
||||
public abstract class KANDIS_Exporter : IDisposable
|
||||
internal abstract class KANDIS_Exporter : IDisposable
|
||||
{
|
||||
private StreamWriter sw;
|
||||
char[] zeile;
|
||||
@@ -50,12 +51,14 @@ namespace WWTech_KanalSchnittstelle.Exporter.Kandis
|
||||
protected void WriteContent(Tuple<uint, uint> spalten, string content)
|
||||
{
|
||||
uint start = spalten.Item1 - 1;
|
||||
uint ende = spalten.Item2 - 1;
|
||||
uint ende = spalten.Item2 -1;
|
||||
|
||||
uint length = ende - start;
|
||||
if(length > content.Length)
|
||||
uint length = (ende+1) - start;
|
||||
if(content.Length > length)
|
||||
{
|
||||
throw new Exception("Inhalt des Feldes ist zu lang");
|
||||
content = content.Substring(0, (int)length);
|
||||
//Debugger.Break();
|
||||
//throw new Exception("Inhalt des Feldes ist zu lang");
|
||||
}
|
||||
|
||||
int counter = 0;
|
||||
|
||||
Reference in New Issue
Block a user