4D v14.3LISTBOX SET FOOTER CALCULATION |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
LISTBOX SET FOOTER CALCULATION
LISTBOX SET FOOTER CALCULATION
The LISTBOX SET FOOTER CALCULATION command sets the automatic calculation associated with the footer of the list box designated by the object and * parameters If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable. In this case, you pass a variable reference instead of a string.
In the calculation parameter, pass one of the following constants, found in the Listbox Footer Calculation theme, in order to set the calculation to be performed:
Note that predefined calculations take all the values of the column into account, including those of any hidden rows. If you want to restrict a calculation to only visible rows, you must use the Listbox footer custom constant and perform a customized calculation. If the data type of a column or of even one column of the list box (when object designate a whole list box) is not compatible with the calculation set, the footer is not modified and the error 18 is generated. If a column contains a formula (selection type list box), the error 10 is generated. Note: Footer area variables are typed automatically (when there are not typed through the code) with regards to the calculation set in the Property List (see Specific properties of List box footers). If the variable data type does not correspond to the result expected by the LISTBOX SET FOOTER CALCULATION command, a typing error is generated. For example, for a column displaying dates, if the footer calculation is 'Maximum', the footer variable will be typed as Date. At this point, if you execute the statement LISTBOX SET FOOTER CALCULATION(footer;Listbox footer count), an error is generated because the expected data type of the result (longint) differs from the actual variable data type. |
PROPERTIES
Product: 4D
HISTORY
Created: 4D v13 SEE ALSO
LISTBOX Get footer calculation ARTICLE USAGE
4D Language Reference ( 4D v14 R3) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||