Board index » Visual Studio » Advanced function for rights management
|
davidw
|
Advanced function for rights management
Visual Studio2
Hi Sometimes VB uses numbers (2^n) in arguments (eg. MsgBox). One all has to provide a single number to identify the correct combination I would also like to implement this kind of functionality for rights management. Let's say I have n forms that would be identified by numbers 1 (2^1), 2 (2^1), 4 (2^2), 8 (2^3), ..., 2^n. Each user would be assigned a single number that would tell which forms he has access to - the number would be the sum of the numbers of the forms. So if his rights' number would be 6, he would have acces to form 2 and form 4 What I would like to do is to have a function, thah would automatically tell if the user has right to access a certain form - based on form number and rights' number Does anybody knows what would that function be Thanks Bostjan - |
