ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Deletes all formulas added with TableFormulaAdd.
Example
TableFormulaDeleteAll(TABLE_MaTable)
nLigne is int
nLigne = TableFormulaAdd(TABLE_MaTable.COL_Num, "Moyenne positive", ProcInit, ProcAjout, ProcFin)
// Changement de la couleur de fond de la ligne du calcul personnalisé
COL_Num[nLigne].CouleurFond = LightRed

nCompteur is int
INTERNAL PROCEDURE ProcInit() 
	nCompteur = 0
	RETURN 0
END

INTERNAL PROCEDURE ProcAjout(Accumulateur, ValeurCol) 
	// Ignore les négatifs ou NULL
	IF (ValeurCol <= 0) RETURN Accumulateur
	nCompteur++
	RETURN Accumulateur + ValeurCol
END
INTERNAL PROCEDURE ProcFin(Accumulateur) 
	IF nCompteur = 0 THEN RETURN 0
	// Calcul de la moyenne
	RETURN  Accumulateur/nCompteur
END
Syntax
TableFormulaDeleteAll(<Table control>)
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
If this parameter corresponds to an empty string (""), the control to which the current event belongs will be used.
Remarks
The preset calculations (total, mean, count, min, max) are not affected.
Component: wd300obj.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help