dim a set a=server.createobject("projectname.classname") 首先projectname要编译or set b=a
example: the class name is class1.cls the code is follow: private a as integer prevate b as integer public setval(x as integer,y as integer) a=x b=y end subhere is the call codedim myclass as new class1 set myclass=new class1 myclass.setval(3,6)
set a=server.createobject("projectname.classname")
首先projectname要编译or
set b=a
the class name is class1.cls
the code is follow:
private a as integer
prevate b as integer
public setval(x as integer,y as integer)
a=x
b=y
end subhere is the call codedim myclass as new class1
set myclass=new class1
myclass.setval(3,6)
所以你的语法也不支持
用VB吧