question to all the VB6 gurus

Open discussion about any topic, as long as you abide by the rules of course!
Post Reply
Oldfriend
Posts: 93
Joined: Tue May 03, 2005 6:07 am

question to all the VB6 gurus

Post by Oldfriend »

lets say you have an application and you want to limit a form's functionality based on user permitions(no not the OS's permissions, but the permision set localy for that application).

it just seems like a mandane situation rearanging every form's control and function based on if's and then's according to the user.

is there a broadly accepted convention on how to handle situations like this, or is it flat out as simple as it looks: alot of exceptions set localy to te control or functionality?

I really hope I'm making my point clear on this one.

I'm thinking: save each user's permissions in a database, and eveytime a form/control loads and a function is called I have to check on the user database for the right permissions and make the changes on the spot for each situation.
Ryoki
Posts: 13460
Joined: Wed Aug 01, 2001 7:00 am

Post by Ryoki »

I think what you need to do is look for some kind of broadly accepted convention to handle situations like that.
[size=85][color=#0080BF]io chiamo pinguini![/color][/size]
bitWISE
Posts: 10704
Joined: Wed Dec 08, 1999 8:00 am

Post by bitWISE »

What if you setup a set of user types (like Admin, Manager, Supervisor, Employee) and then during the Form_Load you check to see which class the user is in and then just disable the controls based on that?
Oldfriend
Posts: 93
Joined: Tue May 03, 2005 6:07 am

Post by Oldfriend »

bitWISE wrote:What if you setup a set of user types (like Admin, Manager, Supervisor, Employee) and then during the Form_Load you check to see which class the user is in and then just disable the controls based on that?
I was thinking of handling it with groups but , there might be need for more detail.

I really don't see this as being a simple solution, it's just goign to take a butload of coding
Post Reply