首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

关于类型转换的有关问题,请大家帮忙,多谢了

2011-12-14 
关于类型转换的问题,请大家帮忙,谢谢了~selectID,FatherVocationNamefromFatherVocationwhereId +this.

关于类型转换的问题,请大家帮忙,谢谢了~
"select   ID,FatherVocationName   from   FatherVocation   where   Id= "+this.ds.table[0].rows[1][2].tostring()

Id是int类型的,怎么把this.ds.table[0].rows[1][2].tostring()转换成int类型的呢,急,请各位大侠帮忙;



[解决办法]
(int)this.ds.table[0].rows[1][2]
[解决办法]
Convert.Toint32()
[解决办法]
Convert.Toint32(this.ds.table[0].rows[1][2])
[解决办法]
Convert.ToInt32(this.ds.Table[0].Rows[1][2])

热点排行