isladogs
MVP / VIP
- Local time
- Today, 00:28
- Joined
- Jan 14, 2017
- Messages
- 18,246
I'm answering on my tablet as my computer is packed ready for moving house tomorrow.
I really don't understand why you are responding in such an attacking manner.
I'm not 'admitting' that my example was flawed. It was an example that shows how the tag property can manage the state of groups of controls. I never claimed it was based on user levels but it is perfectly suitable for that purpose and I have used it for that on many occasions.
I'm not running away from you or anyone else but I don't take kindly to being challenged in the aggressive tone you are using.
However I've already answered the same point in my reply to Tera in post #14
Neither of us know whether the OP's requirements are anything like your example. But let's assume they are.
Tag the buttons as 1 2 3 …. 17
Set all buttons hidden by default
Then use select case for each user e.g.
As I've already stated, my code is intended for situations where you have a group of controls that would be all made visible or hidden at once. However, it works for your example and is as concise as your code.
Hopefully that will be enough to explain the approach...as it may be several days before I am able to post any further replies
I am perfectly happy whichever solution the OP chooses.
In the meantime, do please get rid of the hostile attitude that you seem to be showing. It doesn't help anyone.
I really don't understand why you are responding in such an attacking manner.
I'm not 'admitting' that my example was flawed. It was an example that shows how the tag property can manage the state of groups of controls. I never claimed it was based on user levels but it is perfectly suitable for that purpose and I have used it for that on many occasions.
I'm not running away from you or anyone else but I don't take kindly to being challenged in the aggressive tone you are using.
However I've already answered the same point in my reply to Tera in post #14
Neither of us know whether the OP's requirements are anything like your example. But let's assume they are.
Tag the buttons as 1 2 3 …. 17
Set all buttons hidden by default
Then use select case for each user e.g.
Code:
Select Case User
Case 1
ShowControls True, "1", "3", "7", "10", "12", "16"
Case 2
….
As I've already stated, my code is intended for situations where you have a group of controls that would be all made visible or hidden at once. However, it works for your example and is as concise as your code.
Hopefully that will be enough to explain the approach...as it may be several days before I am able to post any further replies
I am perfectly happy whichever solution the OP chooses.
In the meantime, do please get rid of the hostile attitude that you seem to be showing. It doesn't help anyone.