Was this helpful?
HashTableEntry Class Added
The new HashTableEntry class enables the persistence and restoration of HashTable subclass objects within a component or application—for example, within TaggedValues. It works in conjunction with HashTable class methods GetEntries and LoadEntries (see page HashTable Class Gets New Attributes and Methods).
The HashTableEntry class helps to ensure that the sequence of entries in a cloned object (Duplicate method) matches that of the original one so that the Find method returns the same (first) object if it contains multiple objects having the same key.
The HashTable class has no methods, but has the following attributes:
Entries
Data Type: array of HashTableEntry
4GL Access: R
The Entries attribute contains an array representation of the entries (key and object mappings) of a HashTable.
HashValue
Data Type: integer
4GL Access: R
The HashValue attribute specifies the value that the key was hashed to. It is populated by the HashTable.GetEntries() method (see page HashTable Class Gets New Attributes and Methods) and determines the internal bucket number.
Key
Data Type: varchar(2000)
4GL Access: RW
The Key attribute is the varchar representation of the entry's key.
Object
Data Type: Object
4GL Access: RW
The Object attribute is the reference to the entry's object.
For more information about the HashTableEntry class, see the Language Reference Guide.
Last modified date: 12/20/2023