Hi !
I'm trying to set a session variable as an object :
***code begins here********
Class Engin
Private modVersion
Private modName
private modCat
Private Sub Class_Initialize
modVersion = "1.0"
modName = "Kernel Engin"
modCat = "base module"
End Sub
Public Property Get Version
Version = modVersion
End Property
Public Property Get Label
Label = modName
End Property
Public Property Get Category
Category = modCat
End Property
Public Property Get getInfos
getInfos = "Version: "&Version&"<br>Label: "&Label&"<br>Category: "&Category&"<br>"
End Property
End Class
If IsObject(Session("oEngin") Then
response.write("session is already active<br>"
Else
Set Session("oEngin" = New Engin
response.write("session activated<br>"
End If
response.write(Session("oEngin".getInfos)
***code ends here********
This returns the following error (in french):
Type d'erreur :
Erreur d'exécution Microsoft VBScript (0x800A01B6)
Cet objet ne gère pas cette propriété ou cette méthode: 'Session(...).getInfos'
/test/kernel.asp, line 37
that means (translated in english):
Error Type :
Error whille executing MS VBscript (0x800A01B6)
this object does not support this property or method: 'Session(...).getInfos'
/test/kernel.asp, line 37
Help me please !!!
Thanks, nicolas.
I'm trying to set a session variable as an object :
***code begins here********
Class Engin
Private modVersion
Private modName
private modCat
Private Sub Class_Initialize
modVersion = "1.0"
modName = "Kernel Engin"
modCat = "base module"
End Sub
Public Property Get Version
Version = modVersion
End Property
Public Property Get Label
Label = modName
End Property
Public Property Get Category
Category = modCat
End Property
Public Property Get getInfos
getInfos = "Version: "&Version&"<br>Label: "&Label&"<br>Category: "&Category&"<br>"
End Property
End Class
If IsObject(Session("oEngin") Then
response.write("session is already active<br>"
Else
Set Session("oEngin" = New Engin
response.write("session activated<br>"
End If
response.write(Session("oEngin".getInfos)
***code ends here********
This returns the following error (in french):
Type d'erreur :
Erreur d'exécution Microsoft VBScript (0x800A01B6)
Cet objet ne gère pas cette propriété ou cette méthode: 'Session(...).getInfos'
/test/kernel.asp, line 37
that means (translated in english):
Error Type :
Error whille executing MS VBscript (0x800A01B6)
this object does not support this property or method: 'Session(...).getInfos'
/test/kernel.asp, line 37
Help me please !!!
Thanks, nicolas.