4D v19

collection.clear( )

Home

 
4D v19
collection.clear( )

collection.clear( )  


 

The collection.clear( ) method removes all elements from the collection instance and returns an empty collection.

Note: This method modifies the original collection.

Example  

 C_COLLECTION($col)
 $col:=New collection(1;2;5)
 $col.clear()
 $vSize:=$col.length //$vSize=0



See also 

collection.remove( )

 
PROPERTIES 

Product: 4D
Theme: Collections

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)