RecordSet.removeAll( )

RecordSet.removeAll( ) Method

Flash 6

deletes all records in a recordset

myRecordSet.removeAll( )

Description

The removeAll( ) method removes
the entire contents of the
RecordSet object. The structure (column names)
of the RecordSet object remains intact, however,
and the internal identifiers in use before calling the
removeAll( ) method are not reused.

In this case, the Output window shows that the recordset has a length
of 0, but it also shows that the field names are
still in place. If we add a record to the
RecordSet object now, the internal identifier of
the row will be incremented from where it left off before; the
internal identifier numbers of the two rows that existed previously
are not reused: