ocmIpAddr.ExecuteScalar();
a=System.Convert.ToInt16(ocmIpAddr.ExecuteOracleScalar());
为什么要两句呀~ocmIpAddr.ExecuteOracleScalar() 这是一个object吧/?
错误再描述的详细点呀~
a=System.Convert.ToInt16(ocmIpAddr.ExecuteOracleScalar());
为什么要两句呀~ocmIpAddr.ExecuteOracleScalar() 这是一个object吧/?
错误再描述的详细点呀~
int型 应该是System.Convert.ToInt32(....)
因该先
ocmIpAddr.ExecuteOracleScalar().toString
强制转换为string...如果象以上说的,都出现.."转换无效"的错误