PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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 "Pre-print process of 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 a process of the report.
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment