I need to store a byte array within my 'clsAccount' class file.
I have it like this:
Code:
Private account_Buffer() As Byte
But I keep pulling up an error whenever I try and call Player(index).Buffer
Here's my get/let:
Code:
Public Property Get Buffer() As Byte
Buffer = account_Buffer()
End Property
Public Property Let Buffer(ByVal vData As Byte)
account_Buffer() = vData
End Property
I also tried:
Code:
Public Property Get Buffer(ByVal iI As Long) As Byte
If iI >= 0 And iI <= UBound(account_Buffer) Then
Buffer = account_Buffer(iI)
End If
End Property
Public Property Let Buffer(ByVal iI As Long, ByVal vData As Byte)
If iI >= 0 And iI <= UBound(account_Buffer) Then
account_Buffer(iI) = vData
End If
End Property
But I need the entire array for my code, not just a single part of it.
Read around and saw a couple of pieces talking about Collections, but I'm still at a loss on how I can grab the entire array in one call.
_________________
Quote:
Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
