StructClear()
Removes all data from a structure.
StructClear( struct=struct );
Returns: Boolean
| Argument | Description |
|---|---|
|
struct
struct,
required
|
edit
Structure to clear Alias: structure, object |
Examples
editNon-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 open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)