Hey all,
I'm trying to create a dynamic class to handle user permissions on my site. Right now, if I add a new permission field to the db, I also have to create the GET/SET properties in the class itself.
I'm looking to have the class created dynamically based on the fields in a specified table. This way, adding a new permission is a one-step process.
As a first step, I decided to forgo the GET/SET methods and simply create PUBLIC variables.
My variables are being created properly, but since all code has to fall into a sub/fn I can't create my dims dynamically (ie. PUBLIC strHello, strHello1).
Any thoughts? I can show the code if you think it'll help.
Thx,
Dave
I'm trying to create a dynamic class to handle user permissions on my site. Right now, if I add a new permission field to the db, I also have to create the GET/SET properties in the class itself.
I'm looking to have the class created dynamically based on the fields in a specified table. This way, adding a new permission is a one-step process.
As a first step, I decided to forgo the GET/SET methods and simply create PUBLIC variables.
My variables are being created properly, but since all code has to fall into a sub/fn I can't create my dims dynamically (ie. PUBLIC strHello, strHello1).
Any thoughts? I can show the code if you think it'll help.
Thx,
Dave