StructInsert  
 
 

Inserts the specified key-value pair into the specified structure. Returns Yes if the insert was successful and No if an error occurs.

See also StructClear, StructDelete, StructFind, StructIsEmpty, StructKeyExists, StructCount, StructNew, and StructUpdate.

 
 
  Syntax  
 
StructInsert(structure, key, value [, allowoverwrite ])

structure

Structure to contain the new key-value pair.

key

Key that contains the inserted value.

value

Value to be added.

allowoverwrite

Optionally indicates whether to allow overwriting an existing key. The default is FALSE.

 
 
  Usage  
 

This function throws an exception if structure does not exist or if key exists and allowoverwrite is set to FALSE.





 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.