Language Reference Guide : System Classes : IntegerHashTable Class : InsertObject Method
 
Share this page          
InsertObject Method
The InsertObject method inserts the object with the given key into the hash table.
If the Setup() method has not been run prior to running this method, InsertObject will set up the hash table using default settings.
This method has the following syntax:
integer = IntegerHashTable.InsertObject(
          key = integer, object = Object)
This method has the following parameters:
key
(Required) Specifies the key of the object to insert into the hash table
object
(Required) Specifies the reference of the object
This method returns ER_OK if successful, ER_DUPLICATEKEY if the key already exists and uniquekey=TRUE, ER_FAIL if another error occurred. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.