Hash_Len(pHash, sKey)
issueid=522 28-08-2016 08:51
thinBasic MVPs
Number of reported issues by ReneMiner: 74
Hash_Len(pHash, sKey)

it would be very useful to get the size of data stored in some hash-table without having to read the data into a string previously.

' currently have to dim a string:

Dim sData As String = Hash_Get(pHash, sKey)
' and then determine size of data:

Dim lDataSize As Long = StrPtrLen(StrPtr(sData))

' desired:

Dim lDataSize As Long = Hash_Len(pHash, sKey)
could be Hash_Size as well - but i think this could lead to some confusion since the user might think it's to determine total size of a hash-table
Dim lSize As Long = Hash_Size(pHash)
Issue Details
Issue Number 522
Issue Type Feature
Project thinBasic
Category Core engine (thinCore.dll)
Status Suggested
Priority 3
Suggested Version 1.9.16.x
Implemented Version (none)
Milestone (none)
Votes for this feature 1
Votes against this feature 0
Assigned Users (none)
Tags (none)

+ Reply