OmegaChartのソースコードの保守
Revision | e328f6c07980bbc381303569c39f6c4168dc9885 (tree) |
---|---|
Time | 2016-09-08 01:16:24 |
Author | panacoran <panacoran@user...> |
Commiter | panacoran |
無尽蔵のデータ中の無効な数字を読み飛ばす
@@ -102,14 +102,18 @@ namespace Zanetti.DataSource.Specialized { | ||
102 | 102 | } |
103 | 103 | |
104 | 104 | NewDailyData td = new NewDailyData(); |
105 | - td.volume = (int)(Double.Parse(t[8]) * vv); | |
106 | - NewDailyData existing = (NewDailyData)result[code]; | |
107 | - //Debug.WriteLine(line); | |
108 | - td.open = (int)(Double.Parse(t[4]) * pv); | |
109 | - td.high = (int)(Double.Parse(t[5]) * pv); | |
110 | - td.low = (int)(Double.Parse(t[6]) * pv); | |
111 | - td.close= (int)(Double.Parse(t[7]) * pv); | |
112 | - result[code] = td; | |
105 | + try { | |
106 | + td.volume = (int)(Double.Parse(t[8]) * vv); | |
107 | + NewDailyData existing = (NewDailyData)result[code]; | |
108 | + //Debug.WriteLine(line); | |
109 | + td.open = (int)(Double.Parse(t[4]) * pv); | |
110 | + td.high = (int)(Double.Parse(t[5]) * pv); | |
111 | + td.low = (int)(Double.Parse(t[6]) * pv); | |
112 | + td.close = (int)(Double.Parse(t[7]) * pv); | |
113 | + } | |
114 | + catch (FormatException) { | |
115 | + } | |
116 | + result[code] = td; | |
113 | 117 | } |
114 | 118 | } |
115 | 119 | line = r.ReadLine(); |