You are watching: What is the meaning of enable and disable
I guess to switch is an excellent match, yet unfortunately in JavaScript (my taracquire language), switch is a reserved keyword.
What choices are there?


May I indicate "to collection availability"? I think it fits well for function names: SetButtonAvailability(), SetOptionAvailability(), and so on It"s lengthy, however descriptive...


The verb create of toggle have the right to be supplied to indicate altering state

As I"m new, I"m not allowed to comment or vote up, but I favor RegDwigнt"s idea of collection and also availcapacity wrapped around the item/manage name. For instance, I have a Secure Team picker control that I am enabling/disabling in manuscript, and I was wondering what to speak to it. I"m going to embrace that convention and name the approach SetSecureTeamPickerAvailability(). It"s a little long-winded, but incredibly descriptive and self-documenting.
See more: