PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The TotalsEnabled property enables you to:
  • Find out the operating mode of column calculations (automatic or custom) for a Table or TreeView Table control,
  • Temporarily forbid or force the column calculations (automatic or custom) in a Table or TreeView Table control.
Remark: For more details about implementing and programming calculations in Table controls, see:
Example
TABLE_TABLE1.TotalsEnabled = False // no more calculated totals
FOR I = 1 TO 50
TableAdd(TABLE_TABLE1, MyCalculationRowContent(I))
Multitask(-1) // the table is redisplayed without totals
END
TABLE_TABLE1.TotalsEnabled = True
Trace(" Total = " + COL_TOTALCOL[rowTotal])
Syntax

Finding out the operating mode of column calculations (automatic or custom) Hide the details

<Result> = <Control used>.TotalsEnabled
<Result>: Boolean
  • True if the column calculations (automatic or custom) are immediately performed,
  • False if the column calculations (automatic or custom) are not performed.
<Control used>: Control name
Name of Table or TreeView Table control containing the column calculations (automatic or custom).

Modifying the operating mode of column calculations (automatic or custom) Hide the details

<Control used>.TotalsEnabled = <New operating mode>
<Control used>: Control name
Name of Table or TreeView Table control containing the column calculations (automatic or custom).
<New operating mode>: Boolean
  • True to force the execution of column calculations (automatic or custom) in the control,
  • False not to perform the column calculations (automatic or custom).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment