silentwolf
Active member
- Local time
- Today, 08:47
- Joined
- Jun 12, 2009
- Messages
- 644
Hi guys,
I am working on implement classes in vba access
I do understand how it works and how to set it up but what makes me wonder is how can I achieve in one class its ohn methods.
So if I got an implement class like
and one class which uses the implement class
Its ofcourse just a samble with no real meaning as yet but how can I use the Function GetAString ?
What needs to be done in Order to be able to have a class specific method working?
Hope this is understandable what I am asking?
There are only examples of where all methods are in the implement Class and the upstract classes the same so I was wondering if someone can help me to understand what needs to be done in order to make that work.
Many Thanks
Albert
I am working on implement classes in vba access
I do understand how it works and how to set it up but what makes me wonder is how can I achieve in one class its ohn methods.
So if I got an implement class like
Sub DateiOeffnen(strPfadDatei As String)
End Sub
Function LiesDatensatz() As Variant
End Function
Function Datenliste() As Variant
End Function
Function Datenherkunft() As String
End Function
and one class which uses the implement class
Implements clsQuelle
Private m_strPfadDatei As String
'
Sub clsQuelle_DateiOeffnen(strPfadDatei As String)
m_strPfadDatei = strPfadDatei
End Sub
Function clsQuelle_LiesDatensatz() As Variant
'still missing
End Function
Function clsQuelle_Datenliste() As Variant
'still missing
End Function
Function clsQuelle_Datenherkunft() As String
'still missing
End Function
[B]'This would be a method for the class[/B]
Function GetAString() As String
MsgBox "working"
End Function
Its ofcourse just a samble with no real meaning as yet but how can I use the Function GetAString ?
What needs to be done in Order to be able to have a class specific method working?
Hope this is understandable what I am asking?
There are only examples of where all methods are in the implement Class and the upstract classes the same so I was wondering if someone can help me to understand what needs to be done in order to make that work.
Many Thanks
Albert