[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

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
0
shayne23d
Asked:
shayne23d
1 Solution
 
Yrag1Commented:
Hi,
You answered the question yourself, I think.......
As far as i am aware you will need an access method ie a Property which exposes the value, then you just create your object and use the prperty to get the value. I think that is the only way to get it. I could very well be wrong though.

Gary
0
 
Marv-inCommented:
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
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now