![]() |
Array in a Class - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Array in a Class (/showthread.php?tid=2584) |
Array in a Class - Robin - 01-03-2009 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 I also tried: [code] Public Property Get Buffer(ByVal iI As Long) As Byte If iI >= 0 And iI = 0 And iI Re: Array in a Class - Dragoons Master - 01-03-2009 I maneged to make a working version, but I don't know exactly how to get the value with direct access to the variable. Well, try for your self: Code: Option Explicit Code: Private Sub Form_Load() EDIT: Now it works, but since you can't overload in vb6, you cant use the same name for both functions. |