La propriété entitySelection.length retourne le nombre d'entités dans la sélection d'entités. Si la sélection d'entités est vide, elle retourne 0.
Les sélections d'entités ont toujours une propriété length.
C_ENTIER LONG(vSize)
vSize:=ds.Employee.query("gender = :1";"male").length
ALERTE(Chaine(vSize)+" male employees found.")