本帖最后由 Jamescow 于 2010-05-10 19:42:10 编辑

解决方案 »

  1.   

    Dim id() 是局部的,当然传不出去。
      

  2.   

    dll内的变量只在DLL内可以传递。要在ASP中使用,只能用返回值的方式。
      

  3.   

    private aryA() as variantpublic property get A() as variant()
        A = aryA
    end property public function funA() 
        ......
        ......
           aryA() = RS.GetRows(lngN) 'RS: recordset 
        ......
        ......
    end function