PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
NbColumn (Property)
In french: NbColonne
The Property NbColumn makes it possible to know the number of columns of an report. This property is used to find out whether a report is a multi-column report.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Change the background color of a block according to the column number
// (for a report with 2 columns)
// In the event "Before printing the block"
IF MyState.NbColumn = 2 THEN
ACurrentColumn is int = iColumnNum()
SWITCH ACurrentColumn
CASE 1:
MySelf.ColorBackground = LightRed
CASE 2:
MySelf.ColorBackground = LightGreen
END
END
Syntax
<Result> = <Report used>.NbColumn
<Result>: Integer
Number of columns found in the report.
<Report used>: Report name
Name of report to use.
Remarks
  • Property NbColumn applies only to reports (not to the fields or blocks of an report).
  • The Property NbColumn must be used in the event code associated with the report.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment