Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svan-jansson/chashtable
A hash table class for Dataflex that supports values of any type, from basic types to structs and arrays.
https://github.com/svan-jansson/chashtable
Last synced: 7 days ago
JSON representation
A hash table class for Dataflex that supports values of any type, from basic types to structs and arrays.
- Host: GitHub
- URL: https://github.com/svan-jansson/chashtable
- Owner: svan-jansson
- License: mit
- Created: 2013-03-14T09:04:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-05-04T14:24:57.000Z (over 3 years ago)
- Last Synced: 2024-11-21T20:21:23.465Z (2 months ago)
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cHashTable
A hash table class for Dataflex that supports values of any type, from basic types to structs and arrays. Since the Dataflex standard library doesn't include a dictionary type, you are free and safe to download and use this library if you need one. It's been around since 2013 and is actively maintained in 2021.## Code Examples
```dataflex
Use cHashTable.pkg...
Handle hHashTable
String sValue
String[] saKeys// cHashTable is a Class and can be instantiated in any way supported by Dataflex
Get Create U_cHashTable to hHashTable// Use the Set and Get keywords to store and access data
Set Value of hHashTable "Key" to "Value"
Get Value of hHashTable "Key" to sValue// Use the Keys function to get an array of all keys that currently exist
Get Keys of hHashTable to saKeys// Use the Clear procedure to clear all entries
Send Clear of hHashTable// Finally, don't forget to deallocate!
Send Destroy of hHashTable
```