QueryClear
This function clears the query
Method Signature
QueryClear(query=[query])Arguments
Argument
Type
Required
Description
Default
query
query
true
The query to clear
Examples
queryClear member function
Description of the code example
heroes = queryNew( "id,Name", "integer,varchar", [
{
"id" : 1,
"Name" : "Bruce Banner"
},
{
"id" : 2,
"Name" : "Tony Stark"
},
{
"id" : 3,
"Name" : "Bobby Drake"
},
{
"id" : 4,
"Name" : "Jean Grey"
}
] );
writeOutput( "Query with records<br />" );
writeDump( heroes );
writeOutput( "The same query, but cleared<br />" );
writeDump( heroes.clear() );
Result: A query with 4 heroes, then a query with none
Additional Examples
Related
Last updated
Was this helpful?
