COMPUTE_FIELD_STATISTICS Function
Syntax
OutputString as C = compute_field_statistics(C fully_qualified_object_name )
Arguments
- fully_qualified_object_nameCharacter
The address of a child object on a form or browse.
Returns
- OutputStringCharacter
Returns the computed statistics as a CR-LF delimited list.
Description
Computes statistics for the field bound to the fully_qualified_object_name.
Discussion
The COMPUTE_FIELD_STATISTICS() function returns a dot variable, with all of the relevant statistics (e.g. count, minimum, maximum, total, average, etc.) for the field that is bound to the Fully_Qualified_Object_Name. For example:
Example
objname= ":test_form:BROWSE1:item_total" stats = compute_field_statistics(objname) ?stats = Average = 106.659000 count = 10.000000 First = 35.910000 Last = 0.000000 Maximum = 235.520000 Minimum = 0.000000 Standard = 79.411404 Total = 1066.590000 Variance = 6306.171069
COMPUTE_FIELD_STATISTICS() references the current selection of records. If the form is filtered for some subset of records then the statistics are based on only those records.
See Also