Link to home
Start Free TrialLog in
Avatar of shayne23d
shayne23d

asked on

getting public variable from vb dll

I have a vb dll that I am accessing through asp.
in the dll I have a public variable.
is it possible to get the value of that variable into the asp page?
what is the call that I have to make?
I do not have a let or get for the variable just declared public

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Yrag1
Yrag1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Marv-in
Marv-in

yes, you need to add a public property to the class in your dll

this is generic but you should get the idea

Public Property Get test() As Variant
    If IsObject(mvartest) Then
        Set test = mvartest
    Else
        test = mvartest
    End If
End Property