M
MyndPhlyp
I am working with Classes in classic VBScript on IIS 5.0 and am having a
problem wrapping my head around a solution.
I have a Class defining a record layout. (Bear with me here as I completely
roach the OOP language.) The objects are columns of the record and each
column is defined as its own Class.
The record layout class has a method called Column(str) that returns the
subclass's object. The subclass, in turn, has a Property Get (and a
corresponding Property Set) called Value. This allows me to make a
references like:
strField = objRecord.Column("mycolumn").Value
objRecord.Column("mycolumn").Value = strField
All that works fine and dandy.
The problem is getting a default behavior. I want to make the reference:
strField = objRecord.Column("mycolumn")
and retrieve Value from the subclass. What I get from IIS is "Object doesn't
support this property or method". I would expect that statement to trigger
the Property Get for the subclass.
Any ideas? Or am I just expecting too much from classic VBScript?
problem wrapping my head around a solution.
I have a Class defining a record layout. (Bear with me here as I completely
roach the OOP language.) The objects are columns of the record and each
column is defined as its own Class.
The record layout class has a method called Column(str) that returns the
subclass's object. The subclass, in turn, has a Property Get (and a
corresponding Property Set) called Value. This allows me to make a
references like:
strField = objRecord.Column("mycolumn").Value
objRecord.Column("mycolumn").Value = strField
All that works fine and dandy.
The problem is getting a default behavior. I want to make the reference:
strField = objRecord.Column("mycolumn")
and retrieve Value from the subclass. What I get from IIS is "Object doesn't
support this property or method". I would expect that statement to trigger
the Property Get for the subclass.
Any ideas? Or am I just expecting too much from classic VBScript?