Feature #1893
DropList could support IsEmpty operation
Status: | Rejected | Start date: | 07/20/2018 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | CtrlLib | Spent time: | - | |
Target version: | Release 2019.1 - NTH |
Description
To check whenever DropList is empty you need to write following code:
DropList threads; ... if(threads.GetCount() == 0) { ... }
It should be possible with:
if(threads.IsEmpty()) { ... }
History
#1 Updated by Miroslav Fidler about 6 years ago
- Status changed from New to Rejected
OK, so I left this for some while because I was undecided. The reason I do not like this is that it is less clear what IsEmpty means - is this related to droplist or to the value of droplist? GetCount() == 0 is just a couple of characters more to type, but is more clear IMO.