ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
iColumnNum (Function)
In french: iNumColonne
Returns the number of the current column in a multicolumn report.
Note: This function can only be used with reports created with the report editor..
Example
// Changement de la couleur de fond d'un bloc selon le numéro de colonne 
// (cas d'un état à 2 colonnes)
// Dans l'événement "Avant impression du bloc"

MaColonneCourante is int 
MaColonneCourante = iColumnNum()
SWITCH MaColonneCourante
	CASE 1:
		MySelf.CouleurFond = LightRed
	CASE 2:
		MySelf.CouleurFond = LightGreen
END
Syntax
<Result> = iColumnNum()
<Result>: Integer
  • Number of the column currently printed,
  • -1 if an error occurred.
  • 1 if the current report is not a multicolumn report.
Remarks
  • The column numbers start from 1.
  • NbColumn is used to find out the number of columns in the current report.
Business / UI classification: Neutral code
Component: wd300etat.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help