query.clear()
Clears all rows from a query
Introduced: 6.0.0.15
query.clear( )
Returns: Query
This function does not take any arguments.
Examples
qry = queryNew( "name, age", "varchar, integer",
[
[ "Susi", 20 ],
[ "Urs", 24 ],
[ "Smith", 21 ],
[ "John", 26 ]
]);
writeOutput("Before QueryClear :");
writeDump(qry);
<span class="nv">result</span> <span class="o">=</span> <span class="nf">qry.clear</span><span class="p">();</span>
<span class="nf">writeOutput</span><span class="p">(</span><span class="s2">"After QueryClear :"</span><span class="p">);</span>
<span class="nf">writeDump</span><span class="p">(</span><span class="nv">qry</span><span class="p">);</span>