errcode = Convert.ToInt32 (mycommand.Parameters[psize-2].Value);
errmsg  = (string)(mycommand.Parameters[psize-1].Value);
close();
===================================================
close();
errcode = Convert.ToInt32 (mycommand.Parameters[psize-2].Value);
errmsg  = (string)(mycommand.Parameters[psize-1].Value);先关闭连接,再得到输出参数的值顺便给个建议,为什么不用参数数组,而是使用ArrayList来存放参数?