HaveItem(Table, "AbCd")
automatically converts AbCd into lowercase abcd, which is good, but problem is that it doesn't lowerstring convert tables items.
Therefore if I have tableitem "Abcd", using HaveItem(Table, "AbCd") wont find it, or even worse, searching with HaveItem(Table, "Abcd") wont find item "Abcd" since Haveitem first converts it into lowerstring and then compared "abcd" against "Abcd".
Wish request would be that in next Hollywood version HaveItem would convert all items too into lowercase so that as long as you are looking for right name, it would find it.
HaveItem to convert to lowerstrings also the tableitem
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: HaveItem to convert to lowerstrings also the tableitem
That's not possible because as explained here, table items are case sensitive, so
Code: Select all
t = {}
t["Abcd"] = "Hello"
t["abcd"] = "World"
DebugPrint(t["Abcd"], t["abcd"])