From WikiChip
Difference between revisions of "mirc/identifiers/$hget"
(→Properties) |
|||
Line 13: | Line 13: | ||
== Properties == | == Properties == | ||
* '''.unset''' - When passing an item, you can use the .unset property to get the unset time of the item if any | * '''.unset''' - When passing an item, you can use the .unset property to get the unset time of the item if any | ||
+ | * '''.state''' - Return some internal informations about the table. The format returned is 3 tokens space separated, the first word is the number of items in the table, the second is in the format <nbr_used_buckets>/<totalnbr_buckets>, while the third consists of four number separated by a slash as well, but it's unknown what they really mean. | ||
+ | * '''.hash''' - Return the name of the algorithm used by the hash table, which can be passed using the -h switch in {{mIRC|/hmake}} | ||
== Example == | == Example == |
Revision as of 18:12, 5 July 2020
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$hget returns informations about hash tables
Synopsis
$hget(name/N) - returns the name if the hash table exist or Nth name $hget(name/N, item, [&binvar]) - returns the data associated with the item
Parameters
- name/N - the Nth hash table or the name of it
- item - the name of the item you want the data of
- &binvar - if you provide a binvar as a third parameter, the associated data is copied at the beginning of the binvar and the binvar is chopped at length of the associated data (what was before in the binvar is 'deleted' before copying)
Properties
- .unset - When passing an item, you can use the .unset property to get the unset time of the item if any
- .state - Return some internal informations about the table. The format returned is 3 tokens space separated, the first word is the number of items in the table, the second is in the format <nbr_used_buckets>/<totalnbr_buckets>, while the third consists of four number separated by a slash as well, but it's unknown what they really mean.
- .hash - Return the name of the algorithm used by the hash table, which can be passed using the -h switch in /hmake
Example
//hadd -m test test test | echo -a $hget(test,test) | hfree test
Compatibility
Added: mIRC v5.8
Added on: 05 Sep 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also
mIRC identifier list