set 语句 将对象引用赋给变量或属性 你定义 pm为变量 却用set 当然是牛头不对马嘴。。Dim pm(0 To 2) As Double Dim pm1(0 To 2) As Double pm(0) = 0 pm(1) = 0 pm1(0) = 0 pm1(1) = 0 这样就好
f = Sheet1.cells(rows.count,a).End(xlDown).Row z = Sheet2.cells(rows.count,a).End(xlDown).Row
取Session不能在方法外面取,不然会报上述错误。楼主需要把取Session写在某个方法里,如果这个UserID需要整个页面都能用,可以把UserID定义到外面,如:public partial class OrderQuery : System.Web.UI.Page { protected SqlConnection con = new SqlConnection(Common.Conn);private String UserID="";...
static void Main(string[] args){ 改成 protected void Page_Load(object sender, EventArgs e){
set 语句 将对象引用赋给变量或属性 你定义 pm为变量 却用set 当然是牛头不对马嘴。。Dim pm(0 To 2) As Double Dim pm1(0 To 2) As Double pm(0) = 0 pm(1) = 0 pm1(0) = 0 pm1(1) = 0 这样就好
set 语句 将对象引用赋给变量或属性 你定义 pm为变量 却用set 当然是牛头不对马嘴。。Dim pm(0 To 2) As Double Dim pm1(0 To 2) As Double pm(0) = 0 pm(1) = 0 pm1(0) = 0 pm1(1) = 0 这样就好