scottyleics
New Member
- Joined
- Dec 2, 2011
- Messages
- 3
Hi,
I have tried for a couple of hours searching and trying to get this work. I am pretty sure its an easy problem as well but I just cannot seem to work it out.
Sorry if its trivial or has been covered before.
This my class module: (clsUsers)
Option Explicit
Public UserName As String
Public UserAge As Integer
Public UserAtrr() As Boolean
Public UserHeight As Integer
and a sub in a userform:
Dim UserInfos(100) As clsUsers ' global
UserInfos(a).UserName = txtUserName
etc etc.
I need to be able to have "Public UserAtrr() As Boolean" as an array with 15 elmemnts to be addressed like:
UserInfos(a).UserAttr(0) etc
Of course it doesnt allow this as you cannot have an array delcared like this.
Any ideas? I really am stuck.
I have tried for a couple of hours searching and trying to get this work. I am pretty sure its an easy problem as well but I just cannot seem to work it out.
Sorry if its trivial or has been covered before.
This my class module: (clsUsers)
Option Explicit
Public UserName As String
Public UserAge As Integer
Public UserAtrr() As Boolean
Public UserHeight As Integer
and a sub in a userform:
Dim UserInfos(100) As clsUsers ' global
UserInfos(a).UserName = txtUserName
etc etc.
I need to be able to have "Public UserAtrr() As Boolean" as an array with 15 elmemnts to be addressed like:
UserInfos(a).UserAttr(0) etc
Of course it doesnt allow this as you cannot have an array delcared like this.
Any ideas? I really am stuck.