
debug
kankankankan2222
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
在调用对象属性的时候。请先保证对象不为空
foreach (Layer currentLayer in m_mapControl.Map.Layers) { Dataset dataset = currentLayer.Dataset; //这里必须加dataset!= null 这样可以先判断dataset。 //如原创 2012-11-21 15:27:42 · 848 阅读 · 0 评论 -
数据库查询,小心忘了单引号
string strSelectedLinkID = objSelectedLinkID.ToString(); rs_EQCon = ds_EQCon.Query("linkID='" + strSelectedLinkID+"'", CursorType.Static);原创 2012-11-21 17:28:58 · 517 阅读 · 0 评论 -
小心除数不能为0奥
异常: 小心除数不能为0奥。不然就会抛出异常 int maxWeight = MaxValue(alWeight); smallHeight = ((alWeight[i] * intMaxHeight) / maxWeight); //每根柱子的高度原创 2012-12-19 10:36:10 · 710 阅读 · 0 评论