SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.hash_table‎ > ‎

Empty


Platform Objects


Description

Calling target.hash_table.Empty will clear the hash table.

Syntax


trg.hash_table.Empty()

Return value


This function does not return a value.

Sample

'---------- Start ----------
Function Start
Dim table

trg.hash_table.Add "a", 8
     trg.hash_table.Add "b", 11
trg.hash_table.Empty()
trg.Message( trg.hash_table.Count() )
End Function

         
In this case, since the hash table was cleared after a value was added trg.hash_table.Count() will return 0.

See also