nbogdanovic
Member
Hi,
I am trying to create an object that will have many (300 or so) properties/ public variables (which one should I really use?), based on their names I would retrieve a value from a database.
So lets say I have a class:
Public Class pref
now I would like to create a load() function that will go to a database and look up userPref1, assign it a value and then do the same thing for the userPref2.
How could I read these public vars into an array so I can apply the same look-up code to every element?
Thanks.
I am trying to create an object that will have many (300 or so) properties/ public variables (which one should I really use?), based on their names I would retrieve a value from a database.
So lets say I have a class:
Public Class pref
Public userPref1 as String = ""
Public userPref2 as Boolean = False
End ClassPublic userPref2 as Boolean = False
now I would like to create a load() function that will go to a database and look up userPref1, assign it a value and then do the same thing for the userPref2.
How could I read these public vars into an array so I can apply the same look-up code to every element?
Thanks.