轩辕传奇 开阳元石:一个vbsscript类的问题?

来源:百度文库 编辑:高考问答 时间:2024/05/10 11:44:52
<%
class opplic

Private strExample

Public Property Let setExapmle(ByVal strVar)
strVar="吴利民"
strExapmle = strVar
End Property

Public Property Get Exapmle
Exapmle = strExapmle
End Property

end class

Set new_Class = New opplic
'new_class.strVar="吴利民"
Response.Write "名字:" & new_class.Exapmle & "<br>"
%>
------------------------------------------------------
我想让结果变成
姓名:吴利民
怎么修改啊?
这个
Public Property Let setExapmle(ByVal strVar)
strVar="吴利民"
strExapmle = strVar
End Property
有什么用,感觉好象没有用。晕~~~~~~~~~~