StructClear()

Removes all data from a structure.

StructClear( struct=struct );

Returns: Boolean

Argument Description
struct
struct, required

Structure to clear

Alias: structure, object

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