Records in set

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


Records in set (set) Number

ParameterTypeDescription
setStringName of the set to test
Function resultNumberNumber of records in test

Description

Records in set returns the number of records in set. If set does not exist, or if there are no records in set, Records in set returns 0.

Example

The following example displays an alert telling what percentage of the customers are rated as the best:

      ` First calculate the percentage 
   $Percent := (Records in set ("Best") / Records in table ([Customers])) * 100 
      ` Display an alert with the percentage
   ALERT (String ($Percent; "##0%") + " of our customers are the best.")

See Also

Records in selection, Records in table.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next