4D v17.4

entity.last( )

Accueil

 
4D v17.4
entity.last( )

entity.last( )  


 

La méthode entity.last( ) renvoie une référence vers l'entité en dernière position dans la sélection d'entités.

Si l'entité n'appartient à aucune sélection d'entités existante (c'est-à-dire que entity.getSelection( ) renvoie Null), la méthode renvoie une valeur Null.

Exemple  

 C_OBJECT($employees;$employee;$lastEmployee)
 $employees:=ds.Employee.query("lastName = :1";"H@") //Cette sélection d'entités contient 3 entités
 $employee:=$employees[0]
 $lastEmployee:=$employee.last() //$lastEmployee est la dernière entité de la sélection d'entités $employees



Voir aussi  

entity.first( )
entity.next( )
entity.previous( )

 
PROPRIÉTÉS 

Produit : 4D
Thème : ORDA - Entity

 
PAGE CONTENTS 
 
HISTORIQUE 

 
UTILISATION DE L'ARTICLE

4D - Langage ( 4D v17)
4D - Langage ( 4D v17.1)
4D - Langage ( 4D v17.2)
4D - Langage ( 4D v17.3)
4D - Langage ( 4D v17.4)