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

Problem Passing Byte-Array to a Class's Property

$
0
0
The property is defined in the class with this code:
Code:

Public Property Let PrivateKey(ByRef Prk() As Byte)
The code in a command button defines an array to pass with this code:
Code:

Dim PrKey(39) As Byte
and then passes it to the class's property with this code:
Code:

RSA.PrivateKey = PrKey()
What am I doing wrong? Or is this a bug in VB6 itself?

Viewing all articles
Browse latest Browse all 21847

Trending Articles



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