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_LONGINT(vSize)
vSize:=ds.Employee.query("gender = :1";"male").length
ALERT(String(vSize)+" male employees found.")