StructClear()
Removes all data from a structure.
StructClear( struct=struct );
Returns: Boolean
Examples
Non-Member Function
animals = {
cow: "moo",
pig: "oink"
};
// Show current animals
Dump(
label: "Current animals",
var: animals
);
// Clear struct
structClear(animals);
// Show animals, now empty
Dump(
label: "Animals after calling StructClear()",
var: animals
);
See also
- Structures
- struct.clear()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)