Link to home
Start Free TrialLog in
Avatar of SJones
SJones

asked on

Class Question

Stupid Question coming up...

If i've got a class that contains

Name
Age
DOB
etc...

and I need to read multiple people into that class, so how do I go about declaring it as such?

Thanks in advance...
ASKER CERTIFIED SOLUTION
Avatar of crazyman
crazyman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of corvanderlinden
corvanderlinden

If you really need multiple people in that ONE class (I cannot imagine why, see crazyman's solution for a good implementation) then you should declare your members as collections or Array

Name() as string
Age() as integer
DOB() as Date

and the Redim them as you add a person