18
Views
1
Comments
[Advanced Hashtable] HT_Entries is returning empty, even though HT_Count returns 2
Question
advanced-hashtable
Service icon
Forge asset by Caio Santana Magalhães
Application Type
Service

HT_Entries doesn't seem to work.  I'm adding to the hashtable using HT_Set and HT_Count gives back the correct number of entries, but HT_Entries returns empty.  My values are decimals so they should cast to text just fine as per the description "Only values that can be cast to Text are returned."

I made a quick test and added text, an int, a decimal, a bool, and a date to the hashtable.  All 5 of those are castable as text, but HT_Count gives me 5 and HT_Entries has 1.

Failed assert for "Count". Expected "5" but obtained "1"

2019-10-27 01-32-56
Caio Santana Magalhães
 
MVP

Hi @Greg Whitten, sorry it took so long for me to notice this post.

Can you share a sample OML so that I can also reproduce the issue?

The latest version of Advanced Hashtable instantiates a Dictionary<string, object> instead of using the old Hashtable class we were using in older versions. This might've affected the outcome of the test you described.

Thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.