It seems your TestMeth Class does not define the properties X or Y.
Everything else is syntactically correct. Please examine the code of the class module if there are proper definitions of property routines (Let and Get) for X and Y
Code:
Public Property Let X (A as string)
End Property
If in doubt you ought to post the code of this class, so as we can take a look.
Private m_sX As String
Private m_sY As String
Public Property Get X() As String
Line = m_sX
End Property
Public Property Let X(ByVal Value As String)
m_sX = Value
End Property
Public Property Get Y() As String
Method = m_sY
End Property
Public Property Let Y(ByVal Value As String)
m_sY = Value
End Property
Use [code]your code here[/code] tags when you post source code
Search here before you post your question, someone might have already asked it before. My Articles
Bookmarks