我创建了两个Class Model, 一个是纯属性的Customer, 
option explicitpublic name as string 
....
 
另一个是DBHandler,在这个Class Model里面我创建了一个函数
AddGeneralInfo(Byval c as Customer){}但是当我调用这个函数的时候,出现了
Object doesn't support this property or method,
如果把函数参数c去掉,就能调用,why?请大侠指教,多谢

解决方案 »

  1.   

    你刚学VB吧。多找例子看看。这个问题是不需要大侠指教的。Good Luck.
      

  2.   

    你的函数定义编译通过了?VB的函数定义应该如下Public Sub AddGeneralInfo(Byval c as Customer)End Sub
      

  3.   

    函数通过了啊
    public Function AddGeneralInfo(Byval c as Customer)as integer
    end function
      

  4.   

    问题解决,收工调用
    CALL AddGeneralInfo(Customer 类型)
      

  5.   

    函数返回值是不是integer型?调用
    call AddGeneralInfo(参数)if AddGeneralInfo(参数)=?? then ....