Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

[RESOLVED] How to create property of class

$
0
0
Hello,
I would like to ask how to create property of class like example below? I saw it in Object browser of other object and I would like to create similar property in my class.

Here is info from Object browser :
Code:

Property TableCell(Setting As TableCellSettings, [Row1], [Col1], [Row2], [Col2])
Here is real example of usage :
Code:

m_pp.VSV.TableCell(25, 0, 1, , 100) = CInt(m_HeaderBold)
I made this in my class :
Code:

Private m_TableCell As Long

Public Property Get TableCell(Setting As Long, Optional Row1 As Long = 0, Optional Col1 As Long = 0, Optional Rov2 As Long = 0, Optional Col2 As Long = 0)
    TableCell = m_TableCell
    Debug.Print "Get TableCell"
End Property

But I don't know how to create „LET”? Could you help me?

Best regards...
|marek|

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>