diff options
author | Erich Eckner <git@eckner.net> | 2016-01-29 08:47:43 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-01-29 08:47:43 +0100 |
commit | 355c60f9af089166acf4547d9ca3fa219a713e1d (patch) | |
tree | 50df27e69a29fd4ca38c8ef443a379b5d1e7d471 | |
parent | 8916479767e9c3a508a7a1bc3d04d19ac9bebe3a (diff) | |
download | FilterBruteForce-355c60f9af089166acf4547d9ca3fa219a713e1d.tar.xz |
freies Editieren fängt nun ungültige Zahlen ab
-rw-r--r-- | unit2.pas | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -522,7 +522,12 @@ begin break;
end;
setlength(tmpVals,length(tmpVals)+1);
- tmpVals[length(tmpVals)-1]:=strToScientific(leftStr(_cs[i],length(_cs[i])-1));
+ try
+ tmpVals[length(tmpVals)-1]:=strToScientific(leftStr(_cs[i],length(_cs[i])-1));
+ except
+ setlength(tmpVals,length(tmpVals)-1);
+ continue;
+ end;
acs.add(tmpVals[length(tmpVals)-1],1);
end;
if length(tmpVals)<ordnung then begin
|