PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
..NbColumn is used to find out the number of report columns. This property is used to find out whether a report is a multi-column report.
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 MyReport..NbColumn = 2 THEN
ACurrentColumn is int = iColumnNum()
SWITCH ACurrentColumn
CASE 1:
MySelf..BrushColor = LightRed
CASE 2:
MySelf..BrushColor = LightGreen
END
END
Syntax
<Result> = <Report name>..NbColumn
<Result>: Integer
Number of columns found in the report.
<Report name>: Character string (with or without quotes)
Name of report to use.
Remarks
  • ..NbColumn only applies to the reports (and not to the controls or blocks found in a report).
  • ..NbColumn must be used in event code associated with the report.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment