ASP类的写法
时间:2021-02-15 10:22:20|栏目:ASP代码|点击: 次
<%
Class myClassName
Private int_ID '分类id
'类初始化
Private Sub Class_Initialize()
m_strError = ""
End Sub
'类释放
Private Sub Class_Terminate()
m_strError = ""
End Sub
'-----读写各个属性---------------------------
Public Property Get ID
ID = int_ID
End Property
Public Property Let ID(intId)
int_ID = intId
End Property
public Function method()
End Function
End Class
%>
Class myClassName
Private int_ID '分类id
'类初始化
Private Sub Class_Initialize()
m_strError = ""
End Sub
'类释放
Private Sub Class_Terminate()
m_strError = ""
End Sub
'-----读写各个属性---------------------------
Public Property Get ID
ID = int_ID
End Property
Public Property Let ID(intId)
int_ID = intId
End Property
public Function method()
End Function
End Class
%>
栏 目:ASP代码
下一篇:如何在 Access 2003 和 Access 2002 中创建 DSN 的连接到 SQLServer 对链接表
本文标题:ASP类的写法
本文地址:http://www.codeinn.net/misctech/63468.html