Hello,
I have written a dll it has a Property called Status. I used the Class Builder addin. When I Let the Property from a form in my application it works fine - I can Get it from my Form just fine. When I try to Let the Property from within a Public Function in the dll I cannot Get it from my Form. Here is the snip of code from the dll. Could someone help out please.
Thank you for any suggestions.
Steve
I have written a dll it has a Property called Status. I used the Class Builder addin. When I Let the Property from a form in my application it works fine - I can Get it from my Form just fine. When I try to Let the Property from within a Public Function in the dll I cannot Get it from my Form. Here is the snip of code from the dll. Could someone help out please.
Code:
Option Explicit
Dim strPath As String
-------------------
'local variable(s) to hold property value(s)
Private mvarStatus As String 'local copy
Public Property Let Status(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.Status = 5
mvarStatus = vData
End Property
-------------------------
Public Property Get Status() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.Status
Status = mvarStatus
End Property
------------------
Public Function CRGo(ByVal strPath As String)
Dim Status As String
On Error Resume Next
If strPath = "" Then
vData = "Path not provided"
Exit Function
Else
vData = "Path provided"
End If
....
Thank you for any suggestions.
Steve