Hello,
I want to implement a class structure that can take a querystring and the
value of querysting can be called as myClass.getQuery("test").value. I know
that I can do it like myClass.getQuery("test") and get the value of "test"
querystring. But actually, this is an example only. In order to my class
library organized I need a structure like this.
I search internet and documents for ASP and Vbscript, as far as I found is
that in Vbscript, we are allowed to use nested classes and creating
collection object. I tried to run Vbscript examples in an ASP page, I only
get syntax error at where a nested class or collection object is declared. I
also try to learn about creating collection my own collection objects in ASP
because I try to have a function in my Class that returns a collection
object.
My question is a bit confusing, but I am confused too. I will be gratefull
for any help or ideas and information.
Here is the as far as I can go :
Class myClass
Private Sub Class_Initialize()
End Sub
Public Function getQuery(strQuery)
' Here I didn't want to get the query value with the function itself.
' I want to get it as myClass.getQuery("test").value
' I can declare a property to give the value as queryvalue
' But it doesnt help to me because when I do that,
' I can get value as myClass.queryvalue
getQuery = request.querystring(strQuery)
End Function
Private Sub Class_Terminate()
End Sub
End Class
Thank You,
Ugur Aslan
http://www.uguraslan.net