My properties aren't being returned in my ASP page. I've tried setting the return type to Variant, and also setting them to string, neither works. Any help?
Short example of my code:
VB COM:
ASP page
thx in advance.
leo
Short example of my code:
VB COM:
Code:
'''''''''''''''''
'GET PROPERTIES
'resulting db stuff
Public Property Get DatabaseName() As String
DatabaseName = gDBName
End Property
Public Property Get DatabaseLogin() As String
DatabaseLogin = gDBLogin
End Property
Public Property Get DatabasePassword() As String
DatabasePassword = gDBPW
End Property
'end resulting db stuff
''''''''''''''''''
Function DBStuff()
...
'this line prints everything out perfectly.
gResponse.Write "Database information:" & _
"New DB Name: " & dbName & "<br>" & _
"Login: " & "b2c_" & myDBLogin & "<br>" & _
"Login PW: " & myDBPass & "<br>"
'for the get properties
gDBName = dbName
gDBPW = myDBPass
gDBLogin = "b2c_" & myDBLogin
End Function
ASP page
Code:
dim myobj
set myobj = server.createobject("vbdll.mydll")
myobj.dbstuff
'this line is always blank.
Response.write "Name:" & db.DatabaseName & "<br>Login:" & _
db.DatabaseLogin
thx in advance.
leo