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

VB6 - Get accessor not working for array property

$
0
0
I have two properties in my VB6 code:

Code:

Public Property Get PropFileID() As Long
    PropFileID = m_FileID
End Property

Code:

Public Property Get PropFileIDArray() As Long()
    PropFileIDArray = m_FileIDArray
End Property

While debugging, I can see the first property (PropFileID) being assigned a value without error. m_FileID has a value, and after passing through the Get accessor, PropFileID gets the same value.

While debugging the second property (PropFileIDArray), I can see that m_FileIDArray has a valid array value. However, after passing through the Get accessor, PropFileIDArray remains empty.

Am I making some kind of error in the syntax?

Any suggestions would be greatly appreciated

Viewing all articles
Browse latest Browse all 21437

Trending Articles



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